Skip to content

Commit

Permalink
ctdb-tools: Stop "ctdb nodestatus" from always showing all nodes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>
  • Loading branch information
martin-schwenke authored and Martin Schwenke committed May 25, 2017
1 parent fa6753d commit a600d46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ctdb/tools/ctdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a600d46

Please sign in to comment.