mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-tools: Stop deleted nodes from influencing ctdb nodestatus exit code
Deleted nodes should simply be ignored. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14129 RN: Stop deleted nodes from influencing ctdb nodestatus exit code Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
2b37d99a5f
commit
32b5ceb319
@ -5611,7 +5611,13 @@ static int control_nodestatus(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb,
|
||||
|
||||
ret = 0;
|
||||
for (i=0; i<nodemap->num; i++) {
|
||||
ret |= nodemap->node[i].flags;
|
||||
uint32_t flags = nodemap->node[i].flags;
|
||||
|
||||
if ((flags & NODE_FLAGS_DELETED) != 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ret |= flags;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user