]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/Objecter: only request map on startup if epoch == 0
authorSage Weil <sage@inktank.com>
Sat, 17 Aug 2013 06:27:39 +0000 (23:27 -0700)
committerSage Weil <sage@inktank.com>
Fri, 30 Aug 2013 23:54:16 +0000 (16:54 -0700)
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>
src/osdc/Objecter.cc

index 39378521b097986c800a23fd4684d396015f0bdc..af6ebd6ae179e25466c5cf8b5ce326d66fe466f9 100644 (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;
 }