]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: fix OSDMap notifications
authorJohn Spray <john.spray@redhat.com>
Mon, 26 Sep 2016 21:12:19 +0000 (22:12 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:27:07 +0000 (17:27 +0100)
This broken when MgrStandby was separated out,
because it now eats the original OSDMap message
without calling maybe_request_map.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/Mgr.cc

index 2a1cd246e51b2e614a7c085f91b10b87b251c98c..834eb9111f663c4beb160112bd388339b6eb5671 100644 (file)
@@ -172,6 +172,9 @@ void Mgr::init()
     cluster_state.notify_osdmap(osd_map);
   });
 
+  // Subscribe to OSDMap update to pass on to ClusterState
+  objecter->maybe_request_map();
+
   monc->sub_want("mgrdigest", 0, 0);
 
   // Prepare to receive FSMap and request it
@@ -437,7 +440,6 @@ bool Mgr::ms_dispatch(Message *m)
       m->put();
       break;
     case CEPH_MSG_OSD_MAP:
-
       handle_osd_map();
 
       py_modules.notify_all("osd_map", "");