mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Note primary/standby aliases for "node check" and "node status" actions
Add comment noting the intent behind those code sections, otherwise it looks like a copy'n'paste error. This currently isn't documented.
This commit is contained in:
@@ -808,6 +808,7 @@ main(int argc, char **argv)
|
||||
action = PRIMARY_REGISTER;
|
||||
else if (strcasecmp(repmgr_action, "UNREGISTER") == 0)
|
||||
action = PRIMARY_UNREGISTER;
|
||||
/* allow "primary check"/"primary status" as aliases for "node check"/"node status" */
|
||||
else if (strcasecmp(repmgr_action, "CHECK") == 0)
|
||||
action = NODE_CHECK;
|
||||
else if (strcasecmp(repmgr_action, "STATUS") == 0)
|
||||
@@ -834,6 +835,7 @@ main(int argc, char **argv)
|
||||
action = STANDBY_FOLLOW;
|
||||
else if (strcasecmp(repmgr_action, "SWITCHOVER") == 0)
|
||||
action = STANDBY_SWITCHOVER;
|
||||
/* allow "standby check"/"standby status" as aliases for "node check"/"node status" */
|
||||
else if (strcasecmp(repmgr_action, "CHECK") == 0)
|
||||
action = NODE_CHECK;
|
||||
else if (strcasecmp(repmgr_action, "STATUS") == 0)
|
||||
|
||||
Reference in New Issue
Block a user