mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +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>
(cherry picked from commit 32b5ceb319
)
Autobuild-User(v4-9-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-9-test): Fri Sep 20 14:09:11 UTC 2019 on sn-devel-144
This commit is contained in:
committed by
Karolin Seeger
parent
c50486c09a
commit
9a5bdc6c9e
@ -5557,7 +5557,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;
|
||||
|
Reference in New Issue
Block a user