1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

dont list DELETED nodes in the ctdb listnodes output

(This used to be ctdb commit 7eb137aa4c24c69bd93b98fb3c7108e5f3288ebd)
This commit is contained in:
Ronnie Sahlberg 2009-06-04 13:25:58 +10:00
parent f691b96d84
commit 79eef7f2b5

View File

@ -2832,9 +2832,9 @@ static int control_listnodes(struct ctdb_context *ctdb, int argc, const char **a
}
for(i=0;i<nodemap->num;i++){
// if (nodemap->nodes[i].flags & NODE_FLAGS_DELETED) {
// continue;
// }
if (nodemap->nodes[i].flags & NODE_FLAGS_DELETED) {
continue;
}
if (options.machinereadable){
printf(":%d:%s:\n", nodemap->nodes[i].pnn, ctdb_addr_to_str(&nodemap->nodes[i].addr));
} else {