From 372201d418f041d69646793105f6898ab12a7d91 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 22 Jun 2010 22:50:45 +0930 Subject: [PATCH] speed startup: run startup immediately after recovery finished. Seconds between ctdbd first log message and node healthy: BEFORE: 17.08 AFTER: 16.10 Signed-off-by: Rusty Russell --- server/ctdb_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ctdb_monitor.c b/server/ctdb_monitor.c index 12ef36fb..9038ef09 100644 --- a/server/ctdb_monitor.c +++ b/server/ctdb_monitor.c @@ -301,7 +301,7 @@ static void ctdb_wait_until_recovered(struct event_context *ev, struct timed_eve DEBUG(DEBUG_NOTICE,(__location__ " Recoveries finished. Running the \"startup\" event.\n")); event_add_timed(ctdb->ev, ctdb->monitor->monitor_context, - timeval_current_ofs(1, 0), + timeval_current(), ctdb_check_health, ctdb); } -- 2.34.1