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:
parent
599fa31266
commit
9d20a09631
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user