@@ -62,9 +62,9 @@ static GenericKeyring *load_keyring_provider_from_record(KeyringProviderRecord *
62
62
static inline void get_keyring_infofile_path (char * resPath , Oid dbOid );
63
63
static bool fetch_next_key_provider (int fd , off_t * curr_pos , KeyringProviderRecord * provider );
64
64
65
- static uint32 write_key_provider_info (KeyringProviderRecord * provider ,
66
- Oid database_id , off_t position ,
67
- bool error_if_exists , bool write_xlog );
65
+ static void write_key_provider_info (KeyringProviderRecord * provider ,
66
+ Oid database_id , off_t position ,
67
+ bool error_if_exists , bool write_xlog );
68
68
69
69
#ifdef FRONTEND
70
70
@@ -188,10 +188,10 @@ GetAllKeyringProviders(Oid dbOid)
188
188
return scan_key_provider_file (PROVIDER_SCAN_ALL , NULL , dbOid );
189
189
}
190
190
191
- uint32
191
+ void
192
192
redo_key_provider_info (KeyringProviderXLRecord * xlrec )
193
193
{
194
- return write_key_provider_info (& xlrec -> provider , xlrec -> database_id , xlrec -> offset_in_file , false, false);
194
+ write_key_provider_info (& xlrec -> provider , xlrec -> database_id , xlrec -> offset_in_file , false, false);
195
195
}
196
196
197
197
static void
@@ -394,7 +394,7 @@ GetKeyProviderByID(int provider_id, Oid dbOid)
394
394
395
395
#endif /* !FRONTEND */
396
396
397
- static uint32
397
+ static void
398
398
write_key_provider_info (KeyringProviderRecord * provider , Oid database_id ,
399
399
off_t position , bool error_if_exists , bool write_xlog )
400
400
{
@@ -548,34 +548,33 @@ write_key_provider_info(KeyringProviderRecord *provider, Oid database_id,
548
548
}
549
549
close (fd );
550
550
LWLockRelease (tde_provider_info_lock ());
551
- return provider -> provider_id ;
552
551
}
553
552
554
553
555
554
/*
556
555
* Save the key provider info to the file
557
556
*/
558
- uint32
557
+ void
559
558
save_new_key_provider_info (KeyringProviderRecord * provider , Oid databaseId , bool write_xlog )
560
559
{
561
- return write_key_provider_info (provider , databaseId , -1 , true, write_xlog );
560
+ write_key_provider_info (provider , databaseId , -1 , true, write_xlog );
562
561
}
563
562
564
- uint32
563
+ void
565
564
modify_key_provider_info (KeyringProviderRecord * provider , Oid databaseId , bool write_xlog )
566
565
{
567
- return write_key_provider_info (provider , databaseId , -1 , false, write_xlog );
566
+ write_key_provider_info (provider , databaseId , -1 , false, write_xlog );
568
567
}
569
568
570
- uint32
569
+ void
571
570
delete_key_provider_info (int provider_id , Oid databaseId , bool write_xlog )
572
571
{
573
572
KeyringProviderRecord kpr ;
574
573
575
574
memset (& kpr , 0 , sizeof (KeyringProviderRecord ));
576
575
kpr .provider_id = provider_id ;
577
576
578
- return modify_key_provider_info (& kpr , databaseId , write_xlog );
577
+ modify_key_provider_info (& kpr , databaseId , write_xlog );
579
578
}
580
579
581
580
#ifdef FRONTEND
0 commit comments