]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: don't share osdmap with objecter when preboot 14326/head
authorMingxin Liu <mingxin@xsky.com>
Mon, 13 Mar 2017 15:41:58 +0000 (23:41 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Tue, 4 Apr 2017 16:37:40 +0000 (01:37 +0900)
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
(cherry picked from commit a5a3644eecc49b4eea890c6999fe87536495dcbe)

src/osd/OSD.cc

index a5c92fb4811366aa2af31d547a646e5785988a9d..1fddc8afcd9d4c2b7d127bef4195b2ac451dea43 100644 (file)
@@ -6610,7 +6610,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();