recover: finish pending trans3 commits when a recovery is finished.
authorMichael Adam <obnox@samba.org>
Wed, 23 Feb 2011 16:39:57 +0000 (17:39 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 24 Feb 2011 09:32:00 +0000 (10:32 +0100)
When the end_recovery control is received, pending trans3 commits are
finished. During the recovery, all the actions like persistent_callback
and persistent_store_timeout had been disabled to let the recovery do
its job. After the recover is completed, send the reply to the waiting
clients.

server/ctdb_recover.c

index 8f79f84665a78ddb89b96cf4e740e5697ddff139..0cbd7dc3e20591a1c91f0ce5e7a4549501eb7efe 100644 (file)
@@ -998,6 +998,8 @@ int32_t ctdb_control_end_recovery(struct ctdb_context *ctdb,
 
        DEBUG(DEBUG_NOTICE,("Recovery has finished\n"));
 
+       ctdb_persistent_finish_trans3_commits(ctdb);
+
        state = talloc(ctdb, struct recovery_callback_state);
        CTDB_NO_MEMORY(ctdb, state);