From: Kefu Chai Date: Tue, 9 Mar 2021 04:51:55 +0000 (+0800) Subject: mgr: add mon metada using type of "mon" X-Git-Tag: v16.2.0~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9bfb4c9ecbea4b998b1088146a41a1527b5df87;p=ceph.git mgr: add mon metada using type of "mon" this change addresses a regression introduced by c037f4cb5d7436879d58c34748ef516b5269781f also remove the "P" before the json command. see also: https://tracker.ceph.com/issues/48905 Fixes: https://tracker.ceph.com/issues/49661 Signed-off-by: Kefu Chai (cherry picked from commit 8fc290bfba4d71a60d30c2374ce4bcba37e649de) --- diff --git a/src/mgr/Mgr.cc b/src/mgr/Mgr.cc index 7f52588b9bf..4b2cdf7c536 100644 --- a/src/mgr/Mgr.cc +++ b/src/mgr/Mgr.cc @@ -554,12 +554,12 @@ void Mgr::handle_mon_map() } }); for (const auto& name : names_exist) { - const auto k = DaemonKey{"osd", name}; + const auto k = DaemonKey{"mon", name}; if (daemon_state.is_updating(k)) { continue; } auto c = new MetadataUpdate(daemon_state, k); - const char* cmd = R"(P{{"prefix": "mon metadata", "id": "{}"}})"; + const char* cmd = R"({{"prefix": "mon metadata", "id": "{}"}})"; monc->start_mon_command({fmt::format(cmd, name)}, {}, &c->outbl, &c->outs, c); }