}
- /* if there are takeovers requested, perform it and notify the waiters */
- if (!ctdb_op_is_disabled(rec->takeover_run) &&
- rec->reallocate_requests) {
- process_ipreallocate_requests(ctdb, rec);
- }
-
/* If recoveries are disabled then there is no use doing any
* nodemap or flags checks. Recoveries might be disabled due
* to "reloadnodes", so doing these checks might cause an
* unnecessary recovery. */
if (ctdb_op_is_disabled(rec->recovery)) {
- return;
+ goto takeover_run_checks;
}
/* get the nodemap for all active remote nodes
}
}
+takeover_run_checks:
+
+ /* if there are takeovers requested, perform it and notify the waiters */
+ if (!ctdb_op_is_disabled(rec->takeover_run) &&
+ rec->reallocate_requests) {
+ process_ipreallocate_requests(ctdb, rec);
+ }
+
/* we might need to change who has what IP assigned */
if (rec->need_takeover_run) {
/* If takeover run fails, then the offending nodes are