server: add missing goto again after do_recovery()
authorStefan Metzmacher <metze@samba.org>
Tue, 19 Jan 2010 07:38:53 +0000 (08:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jan 2010 08:44:35 +0000 (09:44 +0100)
metze

server/ctdb_recoverd.c

index 4b407c38a40b80d726bb8175267700a1ebb67c3f..1c3b213da77c856b7c411105169296d3542c125b 100644 (file)
@@ -3264,6 +3264,7 @@ again:
                        DEBUG(DEBUG_ERR, (__location__ " Unable to run the 'startrecovery' event on cluster\n"));
                        ctdb_set_culprit(rec, ctdb->pnn);
                        do_recovery(rec, mem_ctx, pnn, nodemap, vnnmap);
+                       goto again;
                }
 
                ret = ctdb_takeover_run(ctdb, nodemap);
@@ -3271,6 +3272,7 @@ again:
                        DEBUG(DEBUG_ERR, (__location__ " Unable to setup public takeover addresses - starting recovery\n"));
                        ctdb_set_culprit(rec, ctdb->pnn);
                        do_recovery(rec, mem_ctx, pnn, nodemap, vnnmap);
+                       goto again;
                }
 
                /* execute the "recovered" event script on all nodes */