From: Michael Adam Date: Wed, 23 Feb 2011 16:39:57 +0000 (+0100) Subject: recover: finish pending trans3 commits when a recovery is finished. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;ds=sidebyside;h=a7da26616137615958a01ac67f622272ea49b255;p=sahlberg%2Fctdb.git recover: finish pending trans3 commits when a recovery is finished. 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. --- diff --git a/server/ctdb_recover.c b/server/ctdb_recover.c index 8f79f846..0cbd7dc3 100644 --- a/server/ctdb_recover.c +++ b/server/ctdb_recover.c @@ -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);