}
+ /* Get the nodemaps for all connected remote nodes */
+ ret = get_remote_nodemaps(rec, mem_ctx, &remote_nodemaps);
+ if (ret != 0) {
+ DBG_ERR("Failed to read remote nodemaps\n");
+ return;
+ }
+
/* ensure our local copies of flags are right */
ret = update_local_flags(rec, nodemap);
if (ret != 0) {
goto takeover_run_checks;
}
- /* Get the nodemaps for all connected remote nodes */
- ret = get_remote_nodemaps(rec, mem_ctx, &remote_nodemaps);
- if (ret != 0) {
- DBG_ERR("Failed to read remote nodemaps\n");
- return;
- }
-
/* verify that all other nodes have the same nodemap as we have
*/
for (j=0; j<nodemap->num; j++) {