node check: add --missing-slots check

This enables an explicit check for slots which should exist (according
to the repmgr metadata) but which aren't present.
This commit is contained in:
Ian Barwick
2018-06-22 17:19:56 +09:00
parent dd7a4068d2
commit 080a29c33b
6 changed files with 156 additions and 1 deletions

View File

@@ -87,6 +87,7 @@
#define OPT_REMOTE_NODE_ID 1038
#define OPT_RECOVERY_CONF_ONLY 1039
#define OPT_NO_WAIT 1040
#define OPT_MISSING_SLOTS 1041
/* deprecated since 3.3 */
#define OPT_DATA_DIR 999
@@ -164,6 +165,7 @@ static struct option long_options[] =
{"replication-lag", no_argument, NULL, OPT_REPLICATION_LAG},
{"role", no_argument, NULL, OPT_ROLE},
{"slots", no_argument, NULL, OPT_SLOTS},
{"missing-slots", no_argument, NULL, OPT_MISSING_SLOTS},
{"has-passfile", no_argument, NULL, OPT_HAS_PASSFILE},
{"replication-connection", no_argument, NULL, OPT_REPL_CONN},