speed startup: alter recovery loop
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:23 +0000 (22:50 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jun 2010 13:20:23 +0000 (22:50 +0930)
commit097046025176b9fcb670839d1a9f100f890e7ed2
tree931a9ac5334b1aa34cf5366353438548f7113d8d
parentf26b59d8b96a70baa80ab1bad406ee6a21330b68
speed startup: alter recovery loop

We do a recovery on startup.  But the code does:
   Sleep for ctdb->tunable.recover_interval.
   Check for recovery.

We want to do it in the other order.  This is best done by extracting
the loop into a separate "main_loop" function.

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

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