node check: add --upstream option

We have a --downstream option to check for attached nodes, but it
would be useful to have a corresponding --upstream option too.

A following patch will adapt the behaviour of this option when executed
on the primary node.
This commit is contained in:
Ian Barwick
2020-03-30 17:54:24 +09:00
parent f3258c5002
commit d9cb38c7f0
6 changed files with 128 additions and 19 deletions

View File

@@ -505,6 +505,10 @@ main(int argc, char **argv)
runtime_options.downstream = true;
break;
case OPT_UPSTREAM:
runtime_options.upstream = true;
break;
case OPT_REPLICATION_LAG:
runtime_options.replication_lag = true;
break;