Start the accepter thread when the first dispatcher is ready. This ensures
that there will be someone around to verify authorizers for incoming
connections, and means we have a bit less failure noise on the monitors
as a result.
Signed-off-by: Sage Weil <sage@inktank.com>
{
ldout(cct,10) << "ready " << get_myaddr() << dendl;
dispatch_queue.start();
+
+ lock.Lock();
+ if (did_bind)
+ accepter.start();
+ lock.Unlock();
}
lock.Unlock();
- if (did_bind)
- accepter.start();
-
reaper_started = true;
reaper_thread.create();
return 0;