server/recoverd: do takeover_run after verifying the reclock file
authorStefan Metzmacher <metze@samba.org>
Tue, 31 Aug 2010 06:42:32 +0000 (08:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 Sep 2010 05:49:42 +0000 (07:49 +0200)
metze

server/ctdb_recoverd.c

index fbc5eecaf2ba11b9701268347f493362ce94060d..f945decba504b6c305675d271c9611ebe82f89a6 100644 (file)
@@ -2997,10 +2997,6 @@ again:
                        rec->reallocate_callers = NULL;
                }
        }
-       /* if there are takeovers requested, perform it and notify the waiters */
-       if (rec->reallocate_callers) {
-               process_ipreallocate_requests(ctdb, rec);
-       }
 
        if (rec->recmaster == (uint32_t)-1) {
                DEBUG(DEBUG_NOTICE,(__location__ " Initial recovery master set - forcing election\n"));
@@ -3222,6 +3218,11 @@ again:
                }
        }
 
+       /* if there are takeovers requested, perform it and notify the waiters */
+       if (rec->reallocate_callers) {
+               process_ipreallocate_requests(ctdb, rec);
+       }
+
        /* get the nodemap for all active remote nodes
         */
        remote_nodemaps = talloc_array(mem_ctx, struct ctdb_node_map *, nodemap->num);