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:
Sage Weil 2013-08-16 23:27:39 -07:00
parent c6d0b10ed7
commit 42b3d55ddb

View File

@ -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;
}