mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
ctdb-recoverd: Remove duplicate code to update flags during recovery
This also happens earlier in do_recovery() and the nodemap is not updated after that, so this update is redundant. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
d261a75ff5
commit
2038d166ad
@ -1989,23 +1989,6 @@ static int do_recovery(struct ctdb_recoverd *rec,
|
||||
|
||||
DEBUG(DEBUG_NOTICE, (__location__ " Recovery - updated recmaster\n"));
|
||||
|
||||
/*
|
||||
update all nodes to have the same flags that we have
|
||||
*/
|
||||
for (i=0;i<nodemap->num;i++) {
|
||||
if (nodemap->nodes[i].flags & NODE_FLAGS_DISCONNECTED) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = update_flags_on_all_nodes(ctdb, nodemap, i, nodemap->nodes[i].flags);
|
||||
if (ret != 0) {
|
||||
DEBUG(DEBUG_ERR, (__location__ " Unable to update flags on all nodes for node %d\n", i));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(DEBUG_NOTICE, (__location__ " Recovery - updated flags\n"));
|
||||
|
||||
/* disable recovery mode */
|
||||
ret = set_recovery_mode(ctdb, rec, nodemap, CTDB_RECOVERY_NORMAL);
|
||||
if (ret != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user