The lock is not shared with the objecter anymore so we need to call
it under this lock, otherwise we're going to race with
wait_for_osdmap().
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
objecter->handle_osd_op_reply(static_cast<MOSDOpReply*>(m));
break;
case CEPH_MSG_OSD_MAP:
- objecter->handle_osd_map(static_cast<MOSDMap*>(m));
lock.Lock();
+ objecter->handle_osd_map(static_cast<MOSDMap*>(m));
pool_cache_rwl.get_write();
osdmap_epoch = osdmap.get_epoch();
pool_cache_rwl.unlock();