]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
change the getnodemap control to a more consistent output for whether a
authorRonnie Sahlberg <sahlberg@ronnie>
Wed, 2 May 2007 01:06:58 +0000 (11:06 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Wed, 2 May 2007 01:06:58 +0000 (11:06 +1000)
node is connected or not

(This used to be ctdb commit 65c5fe53937a17e1fa6de5739cbd01b982dc49bb)

ctdb/tools/ctdb_control.c

index a2cde90bc8bfbc565a93ffa4f5e4f76645415715..0b641f9605d9c3f01a2a0ed9ab20f67f1777dd2a 100644 (file)
@@ -624,10 +624,10 @@ static int control_getnodemap(struct ctdb_context *ctdb, int argc, const char **
 
        printf("Number of nodes:%d\n", nodemap->num);
        for(i=0;i<nodemap->num;i++){
-               printf("vnn:%d %s\n", nodemap->nodes[i].vnn,
-                       nodemap->nodes[i].vnn==vnn?"THIS NODE": 
+               printf("vnn:%d %s%s\n", nodemap->nodes[i].vnn,
                        nodemap->nodes[i].flags&NODE_FLAGS_CONNECTED?
-                               "CONNECTED":"UNAVAILABLE");
+                               "CONNECTED":"UNAVAILABLE",
+                       nodemap->nodes[i].vnn==vnn?" (THIS NODE)":"");
        }
        talloc_free(nodemap);
        return 0;