Skip to content

Commit 332064b

Browse files
committed
Remove useless comments in pg_tde_tdemap.c
1 parent b2fb3ff commit 332064b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

contrib/pg_tde/src/access/pg_tde_tdemap.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ pg_tde_delete_tde_files(Oid dbOid)
255255
{
256256
char db_map_path[MAXPGPATH] = {0};
257257

258-
/* Set the file paths */
259258
pg_tde_set_db_file_path(dbOid, db_map_path);
260259

261260
/* Remove file without emitting any error */
@@ -295,7 +294,6 @@ pg_tde_save_principal_key(const TDEPrincipalKey *principal_key, bool write_xlog)
295294
char db_map_path[MAXPGPATH] = {0};
296295
TDESignedPrincipalKeyInfo signed_key_Info;
297296

298-
/* Set the file paths */
299297
pg_tde_set_db_file_path(principal_key->keyInfo.databaseId, db_map_path);
300298

301299
ereport(DEBUG2, errmsg("pg_tde_save_principal_key"));
@@ -430,7 +428,6 @@ pg_tde_write_key_map_entry(const RelFileLocator *rlocator, InternalKey *rel_key_
430428

431429
Assert(rlocator);
432430

433-
/* Set the file paths */
434431
pg_tde_set_db_file_path(rlocator->dbOid, db_map_path);
435432

436433
pg_tde_sign_principal_key_info(&signed_key_Info, principal_key);
@@ -478,7 +475,6 @@ pg_tde_write_key_map_entry(const RelFileLocator *rlocator, InternalKey *rel_key_
478475
curr_pos = prev_pos;
479476
pg_tde_write_one_map_entry(map_fd, &write_map_entry, &prev_pos, db_map_path);
480477

481-
/* Let's close the file. */
482478
close(map_fd);
483479
}
484480

@@ -496,7 +492,6 @@ pg_tde_write_key_map_entry_redo(const TDEMapEntry *write_map_entry, TDESignedPri
496492
off_t curr_pos = 0;
497493
off_t prev_pos = 0;
498494

499-
/* Set the file paths */
500495
pg_tde_set_db_file_path(signed_key_info->data.databaseId, db_map_path);
501496

502497
LWLockAcquire(tde_lwlock_enc_keys(), LW_EXCLUSIVE);
@@ -529,7 +524,6 @@ pg_tde_write_key_map_entry_redo(const TDEMapEntry *write_map_entry, TDESignedPri
529524
curr_pos = prev_pos;
530525
pg_tde_write_one_map_entry(map_fd, write_map_entry, &prev_pos, db_map_path);
531526

532-
/* Let's close the file. */
533527
close(map_fd);
534528

535529
LWLockRelease(tde_lwlock_enc_keys());
@@ -716,7 +710,6 @@ pg_tde_write_map_keydata_file(off_t file_size, char *file_data)
716710
/* Let's get the header. Buff should start with the map file header. */
717711
fheader = (TDEFileHeader *) file_data;
718712

719-
/* Set the file paths */
720713
pg_tde_set_db_file_path(fheader->signed_key_info.data.databaseId, db_map_path);
721714

722715
/* Initialize the new file and set the name */
@@ -860,7 +853,6 @@ pg_tde_get_key_from_file(const RelFileLocator *rlocator, uint32 key_type)
860853

861854
Assert(rlocator);
862855

863-
/* Get the file paths */
864856
pg_tde_set_db_file_path(rlocator->dbOid, db_map_path);
865857

866858
if (access(db_map_path, F_OK) == -1)
@@ -1090,7 +1082,6 @@ pg_tde_get_principal_key_info(Oid dbOid)
10901082
off_t bytes_read = 0;
10911083
char db_map_path[MAXPGPATH] = {0};
10921084

1093-
/* Set the file paths */
10941085
pg_tde_set_db_file_path(dbOid, db_map_path);
10951086

10961087
/*

0 commit comments

Comments
 (0)