]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: add mon metada using type of "mon" 39937/head
authorKefu Chai <kchai@redhat.com>
Tue, 9 Mar 2021 04:51:55 +0000 (12:51 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Mar 2021 11:27:27 +0000 (19:27 +0800)
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 <kchai@redhat.com>
src/mgr/Mgr.cc

index 91e5ed482698d8a9bf56df4105b94c069e7b016c..fb5f5253275064b5143ef47048842772c31a27b5 100644 (file)
@@ -544,12 +544,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);
   }