1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

change the getnodemap control to a more consistent output for whether a

node is connected or not

(This used to be ctdb commit 65c5fe53937a17e1fa6de5739cbd01b982dc49bb)
This commit is contained in:
Ronnie Sahlberg 2007-05-02 11:06:58 +10:00
parent 599fa31266
commit 9d20a09631

View 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;