osd: catch authenticate error on startup

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-12-29 08:43:41 -08:00
parent 5d5c9b6fc3
commit 300c758421

View File

@ -692,7 +692,13 @@ int OSD::init()
osd_lock.Unlock();
monc->authenticate();
r = monc->authenticate();
if (r < 0) {
monc->shutdown();
store->umount();
return r;
}
monc->wait_auth_rotating(30.0);
osd_lock.Lock();