mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
osdc/Objecter: only request map on startup if epoch == 0
Normal clients have no map and need one to get started. If we are the OSD, we will already have one and will get fed maps as they come in. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
c6d0b10ed7
commit
42b3d55ddb
@ -229,7 +229,8 @@ void Objecter::init_locked()
|
||||
assert(!initialized);
|
||||
|
||||
schedule_tick();
|
||||
maybe_request_map();
|
||||
if (osdmap->get_epoch() == 0)
|
||||
maybe_request_map();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user