diff --git a/dbutils.h b/dbutils.h index 0da3bea6..31447a4f 100644 --- a/dbutils.h +++ b/dbutils.h @@ -17,6 +17,8 @@ #define REPMGR_NODES_COLUMNS "node_id, type, upstream_node_id, node_name, conninfo, repluser, slot_name, location, priority, active, config_file, '' AS upstream_node_name " +#define ERRBUFF_SIZE 512 + typedef enum { UNKNOWN = 0, PRIMARY, diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 7425b04e..36482ebe 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -422,7 +422,7 @@ do_standby_clone(void) if (record_status == RECORD_FOUND) { - log_hint(_("after starting the server, you need to re-register this standby with \"repmgr standby register --force\" to overwrite the existing node record")); + log_hint(_("after starting the server, you need to re-register this standby with \"repmgr standby register --force\" to update the existing node record")); } else { diff --git a/repmgr.h b/repmgr.h index 0800257b..41337be2 100644 --- a/repmgr.h +++ b/repmgr.h @@ -28,16 +28,21 @@ #define MIN_SUPPORTED_VERSION "9.5" #define MIN_SUPPORTED_VERSION_NUM 90500 + +#define REPLICATION_TYPE_PHYSICAL 1 +#define REPLICATION_TYPE_BDR 2 + #define UNKNOWN_SERVER_VERSION_NUM -1 #define NODE_NOT_FOUND -1 #define NO_UPSTREAM_NODE -1 #define UNKNOWN_NODE_ID -1 -#define REPLICATION_TYPE_PHYSICAL 1 -#define REPLICATION_TYPE_BDR 2 - +/* + * various default values - ensure repmgr.conf.sample is update + * if any of these are changed + */ #define DEFAULT_LOCATION "default" #define DEFAULT_PRIORITY 100 #define DEFAULT_RECONNECTION_ATTEMPTS 6 /* seconds */ @@ -52,8 +57,6 @@ #define DEFAULT_REPLICATION_LAG_WARNING 300 /* seconds */ #define DEFAULT_REPLICATION_LAG_CRITICAL 600 /* seconds */ -#define FAILOVER_NODES_MAX_CHECK 50 - #ifndef RECOVERY_COMMAND_FILE #define RECOVERY_COMMAND_FILE "recovery.conf" @@ -63,7 +66,6 @@ #define TABLESPACE_MAP "tablespace_map" #endif -#define ERRBUFF_SIZE 512