If we abort while waiting, we incorrect clean up (we switch the state value
incorrectly, and also fail to clean up the initialized objecter).
Intead, skip this wait.. it's useless!
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
objecter->init_locked();
monclient.renew_subs();
- while (osdmap.get_epoch() == 0) {
- ldout(cct, 1) << "waiting for osdmap" << dendl;
- cond.Wait(lock);
- }
-
finisher.start();
state = CONNECTED;