From a7da26616137615958a01ac67f622272ea49b255 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Feb 2011 17:39:57 +0100 Subject: [PATCH] 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. --- server/ctdb_recover.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.34.1