From 1bb9edbaf27d026acbf3fcfb80bdbf7a34f00fce Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 26 Sep 2016 22:12:19 +0100 Subject: [PATCH] mgr: fix OSDMap notifications 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 --- src/mgr/Mgr.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mgr/Mgr.cc b/src/mgr/Mgr.cc index 2a1cd246e51b..834eb9111f66 100644 --- a/src/mgr/Mgr.cc +++ b/src/mgr/Mgr.cc @@ -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", ""); -- 2.47.3