mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Make enum for sync methods available to frontend code.
This commit renames RecoveryInitSyncMethod to DataDirSyncMethod and moves it to common/file_utils.h. This is preparatory work for a follow-up commit that will allow specifying the synchronization method in frontend utilities such as pg_upgrade and pg_basebackup. Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/ZN2ZB4afQ2JbR9TA%40paquier.xyz
This commit is contained in:
@@ -46,12 +46,6 @@
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
typedef enum RecoveryInitSyncMethod
|
||||
{
|
||||
RECOVERY_INIT_SYNC_METHOD_FSYNC,
|
||||
RECOVERY_INIT_SYNC_METHOD_SYNCFS
|
||||
} RecoveryInitSyncMethod;
|
||||
|
||||
typedef int File;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user