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