We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033f7ca commit cc459dfCopy full SHA for cc459df
contrib/pg_tde/src/access/pg_tde_xlog_encrypt.c
@@ -206,15 +206,16 @@ TDEXLogSmgrInit(void)
206
{
207
pg_tde_create_wal_key(&EncryptionKey, &GLOBAL_SPACE_RLOCATOR(XLOG_TDE_OID),
208
TDE_KEY_TYPE_WAL_UNENCRYPTED);
209
- pfree(key);
210
}
211
else if (key)
212
213
EncryptionKey = *key;
214
pg_atomic_write_u64(&EncryptionState->enc_key_lsn, EncryptionKey.start_lsn);
215
216
217
+ if (key)
+ pfree(key);
218
+
219
pg_tde_set_db_file_path(GLOBAL_SPACE_RLOCATOR(XLOG_TDE_OID).dbOid, EncryptionState->db_map_path);
220
221
#endif
0 commit comments