1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

ctdb-recoverd: Improve a call to update_flags_on_all_nodes()

This should take a PNN, not an array index.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2020-07-14 14:43:04 +10:00 committed by Martin Schwenke
parent 915d24ac12
commit b1e631ff92

View File

@ -1134,7 +1134,7 @@ static int do_recovery(struct ctdb_recoverd *rec,
} }
ret = update_flags_on_all_nodes(rec, ret = update_flags_on_all_nodes(rec,
i, nodemap->nodes[i].pnn,
nodemap->nodes[i].flags); nodemap->nodes[i].flags);
if (ret != 0) { if (ret != 0) {
if (nodemap->nodes[i].flags & NODE_FLAGS_INACTIVE) { if (nodemap->nodes[i].flags & NODE_FLAGS_INACTIVE) {