speed startup: run startup immediately after recovery finished.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:45 +0000 (22:50 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:45 +0000 (22:50 +0930)
Seconds between ctdbd first log message and node healthy:
BEFORE: 17.08
AFTER: 16.10

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
server/ctdb_monitor.c

index 12ef36fb41730bd4a7a68bde7b1ce10e0f83f63f..9038ef0982e2c29feaa5f52a3c0e22fa28957b7c 100644 (file)
@@ -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);
 }