diff options
author | Martin Schwenke <martin@meltin.net> | 2017-05-24 20:24:54 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-05-26 01:14:17 +0200 |
commit | a600d467e2842ab05e429c5a67be5b222ddd1c12 (patch) | |
tree | 555d5dcf4c6ec288eb399301bf4f59a1b7378487 /ctdb/tools | |
parent | fa6753d6c2f83392e9517bd3cee7d65561fb7c0c (diff) | |
download | samba-a600d467e2842ab05e429c5a67be5b222ddd1c12.tar.gz |
ctdb-tools: Stop "ctdb nodestatus" from always showing all nodes
Exit code should only reflect current or specified nodes too.
Drop an unwanted call to get_nodemap() that overwrites the previously
calculated node map.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12802
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tools')
-rw-r--r-- | ctdb/tools/ctdb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index ae74ef818cb..14b6957e1f0 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -5664,11 +5664,6 @@ static int control_nodestatus(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, return 1; } - nodemap = get_nodemap(ctdb, false); - if (nodemap == NULL) { - return 1; - } - if (options.machinereadable) { print_nodemap_machine(mem_ctx, ctdb, nodemap, ctdb->cmd_pnn); } else { |