]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-tools: "ctdb nodestatus" should only display header for "all"
authorMartin Schwenke <martin@meltin.net>
Wed, 24 May 2017 10:27:58 +0000 (20:27 +1000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Jun 2017 06:49:15 +0000 (08:49 +0200)
commit29b9e1945600efdbdaebe29817149c2dba98c520
tree11c3b0ca874e27a916b14349265fe24145dfc263
parent36f2b52ea78898650af5811801da5988a6786285
ctdb-tools: "ctdb nodestatus" should only display header for "all"

The "Number of nodes:" header should only be displayed when "all" is
specified.  This is how the command behaved in Samba <= 4.4.

Printing the number of nodes is not helpful and is rather confusing in
the default case where only the status of the current node is printed.

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>
(cherry picked from commit 1d10c8e9e637619b754b4a273d3c714fbca7d503)
ctdb/tools/ctdb.c