mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
Convert configuration file parmeter "failover_mode" to an enum
We might want to add more modes in the future.
This commit is contained in:
8
config.h
8
config.h
@@ -14,6 +14,10 @@
|
||||
#define MAXLINELENGTH 4096
|
||||
extern bool config_file_found;
|
||||
|
||||
typedef enum {
|
||||
FAILOVER_MANUAL,
|
||||
FAILOVER_AUTOMATIC
|
||||
} failover_mode_opt;
|
||||
|
||||
typedef struct EventNotificationListCell
|
||||
{
|
||||
@@ -68,7 +72,7 @@ typedef struct
|
||||
TablespaceList tablespace_mapping;
|
||||
|
||||
/* repmgrd settings */
|
||||
int failover_mode;
|
||||
failover_mode_opt failover_mode;
|
||||
int priority;
|
||||
char promote_command[MAXLEN];
|
||||
char follow_command[MAXLEN];
|
||||
@@ -116,7 +120,7 @@ typedef struct
|
||||
/* standby clone settings */ \
|
||||
false, "", "", "", "", { NULL, NULL }, \
|
||||
/* repmgrd settings */ \
|
||||
MANUAL_FAILOVER, DEFAULT_PRIORITY, "", "", 2, 60, 6, 10, 300, false, \
|
||||
FAILOVER_MANUAL, DEFAULT_PRIORITY, "", "", 2, 60, 6, 10, 300, false, \
|
||||
/* witness settings */ \
|
||||
30, \
|
||||
/* service settings */ \
|
||||
|
||||
Reference in New Issue
Block a user