summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-02-13 13:31:18 +1100
committerMartin Schwenke <martin@meltin.net>2012-02-13 13:31:18 +1100
commit629553667ef499246b277e4dea8f4df46000e911 (patch)
tree2914d22d60c465fc07e83539ca795e1ca16c3d3c
parent73f8be16c613a3767c44e29dab9b1d328a04e272 (diff)
downloadsamba-629553667ef499246b277e4dea8f4df46000e911.tar.gz
samba-629553667ef499246b277e4dea8f4df46000e911.tar.xz
samba-629553667ef499246b277e4dea8f4df46000e911.zip
ctdb tool: fix thinko in nodestatus command output
If used with -n <nodes> the "current" node needs to change. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a0340a50c2acd9ccc281faef032a364254f7f95a)
-rw-r--r--ctdb/tools/ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c
index 051a270d6e..6bc3b6ebf2 100644
--- a/ctdb/tools/ctdb.c
+++ b/ctdb/tools/ctdb.c
@@ -936,7 +936,7 @@ static int control_nodestatus(struct ctdb_context *ctdb, int argc, const char **
printf("Number of nodes:%d\n", (int) talloc_array_length(nodes));
}
- if (!ctdb_getpnn(ctdb_connection, CTDB_CURRENT_NODE, &mypnn)) {
+ if (!ctdb_getpnn(ctdb_connection, options.pnn, &mypnn)) {
DEBUG(DEBUG_ERR, ("Unable to get PNN from local node\n"));
return -1;
}