speed startup: immediately run first monitor event after startup.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:07 +0000 (22:50 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:07 +0000 (22:50 +0930)
commitc8651494febcb1c9e558b2002e2a72c2bf547c06
tree7a0a931945679855846486deb24b1f57a203349e
parent097046025176b9fcb670839d1a9f100f890e7ed2
speed startup: immediately run first monitor event after startup.

Once we've done a startup, we need to run a monitor event successfully
to be marked as healthy.  Rather than wait the usual 5 seconds, run it
immediately (which will then reset next_interval to 5 seconds).

Seconds between ctdbd first log message and node healthy:
BEFORE: 23.58
AFTER: 18.09

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