]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: init objecter after we authenticate 6313/head
authorSage Weil <sage@redhat.com>
Mon, 19 Oct 2015 02:22:53 +0000 (22:22 -0400)
committerSage Weil <sage@redhat.com>
Mon, 19 Oct 2015 02:22:53 +0000 (22:22 -0400)
Move objecter init until after we authenticate.  We ignore
osdmap messages while initializing anyway so it's pointless to
ask for them.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 38bebd81feb4b8dccefdf017b0032642bda280c5..80d8da305650fe9c400394191b24cbc7f48a1940 100644 (file)
@@ -1929,10 +1929,6 @@ int OSD::init()
     tick_timer_without_osd_lock.add_event_after(cct->_conf->osd_heartbeat_interval, new C_Tick_WithoutOSDLock(this));
   }
 
-  service.init();
-  service.publish_map(osdmap);
-  service.publish_superblock(superblock);
-
   osd_lock.Unlock();
 
   r = monc->authenticate();
@@ -1951,6 +1947,10 @@ int OSD::init()
   if (is_stopping())
     return 0;
 
+  service.init();
+  service.publish_map(osdmap);
+  service.publish_superblock(superblock);
+
   check_config();
 
   dout(10) << "ensuring pgs have consumed prior maps" << dendl;
@@ -1959,6 +1959,9 @@ int OSD::init()
 
   dout(0) << "done with init, starting boot process" << dendl;
   set_state(STATE_BOOTING);
+
+  // we don't need to ask for an osdmap here; objecter will
+
   start_boot();
 
   return 0;