Allow "CLUSTER EVENTS" as synonym for "CLUSTER EVENT"

This commit is contained in:
Ian Barwick
2017-07-19 22:08:22 +09:00
parent b79a514660
commit 076934558d

View File

@@ -629,6 +629,10 @@ main(int argc, char **argv)
action = CLUSTER_SHOW;
else if (strcasecmp(repmgr_action, "EVENT") == 0)
action = CLUSTER_EVENT;
/* allow "CLUSTER EVENTS" as synonym for "CLUSTER EVENT" */
else if (strcasecmp(repmgr_action, "EVENTS") == 0)
action = CLUSTER_EVENT;
}
else
{