@@ -128,7 +128,7 @@ static void pg_tde_generate_internal_key(InternalKey *int_key, uint32 entry_type
128
128
static int pg_tde_file_header_write (const char * tde_filename , int fd , TDEPrincipalKeyInfo * principal_key_info , off_t * bytes_written );
129
129
static off_t pg_tde_write_one_map_entry (int fd , const TDEMapEntry * map_entry , off_t * offset , const char * db_map_path );
130
130
static void pg_tde_write_key_map_entry (const RelFileLocator * rlocator , InternalKey * rel_key_data , TDEPrincipalKey * principal_key , bool write_xlog );
131
- static bool pg_tde_delete_map_entry (const RelFileLocator * rlocator , uint32 key_type , char * db_map_path , off_t offset );
131
+ static bool pg_tde_delete_map_entry (const RelFileLocator * rlocator , char * db_map_path , off_t offset );
132
132
static int keyrotation_init_file (TDEPrincipalKeyInfo * new_principal_key_info , char * rotated_filename , char * filename , off_t * curr_pos );
133
133
static void finalize_key_rotation (const char * path_old , const char * path_new );
134
134
static int pg_tde_open_file_write (const char * tde_filename , TDEPrincipalKeyInfo * principal_key_info , bool truncate , off_t * curr_pos );
@@ -514,7 +514,7 @@ pg_tde_write_key_map_entry_redo(const TDEMapEntry *write_map_entry, TDEPrincipal
514
514
}
515
515
516
516
static bool
517
- pg_tde_delete_map_entry (const RelFileLocator * rlocator , uint32 key_type , char * db_map_path , off_t offset )
517
+ pg_tde_delete_map_entry (const RelFileLocator * rlocator , char * db_map_path , off_t offset )
518
518
{
519
519
File map_fd ;
520
520
bool found = false;
@@ -551,7 +551,7 @@ pg_tde_delete_map_entry(const RelFileLocator *rlocator, uint32 key_type, char *d
551
551
TDEMapEntry read_map_entry ;
552
552
off_t prev_pos = curr_pos ;
553
553
554
- found = pg_tde_read_one_map_entry (map_fd , rlocator , key_type , & read_map_entry , & curr_pos );
554
+ found = pg_tde_read_one_map_entry (map_fd , rlocator , MAP_ENTRY_VALID , & read_map_entry , & curr_pos );
555
555
556
556
/* We've reached EOF */
557
557
if (curr_pos == prev_pos )
@@ -591,7 +591,7 @@ pg_tde_delete_map_entry(const RelFileLocator *rlocator, uint32 key_type, char *d
591
591
* as MAP_ENTRY_FREE without needing any further processing.
592
592
*/
593
593
void
594
- pg_tde_free_key_map_entry (const RelFileLocator * rlocator , uint32 key_type , off_t offset )
594
+ pg_tde_free_key_map_entry (const RelFileLocator * rlocator , off_t offset )
595
595
{
596
596
bool found ;
597
597
char db_map_path [MAXPGPATH ] = {0 };
@@ -604,7 +604,7 @@ pg_tde_free_key_map_entry(const RelFileLocator *rlocator, uint32 key_type, off_t
604
604
LWLockAcquire (tde_lwlock_enc_keys (), LW_EXCLUSIVE );
605
605
606
606
/* Remove the map entry if found */
607
- found = pg_tde_delete_map_entry (rlocator , key_type , db_map_path , offset );
607
+ found = pg_tde_delete_map_entry (rlocator , db_map_path , offset );
608
608
609
609
LWLockRelease (tde_lwlock_enc_keys ());
610
610
0 commit comments