]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: don't share osdmap with objecter when preboot 13946/head
authorMingxin Liu <mingxin@xsky.com>
Mon, 13 Mar 2017 15:41:58 +0000 (23:41 +0800)
committerMingxin Liu <mingxin@xsky.com>
Mon, 13 Mar 2017 15:55:55 +0000 (23:55 +0800)
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
src/osd/OSD.cc

index e2135a0902c2ec3f03eb7a8dc4e74b9a72be11de..525b014cc7637b293658dcc86cee93a37754f4c7 100644 (file)
@@ -6805,7 +6805,8 @@ void OSD::handle_osd_map(MOSDMap *m)
     session->put();
 
   // share with the objecter
-  service.objecter->handle_osd_map(m);
+  if (!is_preboot())
+    service.objecter->handle_osd_map(m);
 
   epoch_t first = m->get_first();
   epoch_t last = m->get_last();