]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/DaemonServer: use a luminous-compatible 'mgr metadata' command
authorSage Weil <sage@redhat.com>
Wed, 30 Jan 2019 22:44:35 +0000 (16:44 -0600)
committerSage Weil <sage@redhat.com>
Wed, 13 Feb 2019 17:41:21 +0000 (11:41 -0600)
In luminous it was 'id', in mimic it changed to 'who'.

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

index bd3b88b98db90e19c7d9fa9c1f04c76648737206..00c3f7819aa80dae709cf4c9b25165cb187f2f62 100644 (file)
@@ -2575,8 +2575,9 @@ void DaemonServer::got_mgr_map()
       auto md_update = [&] (DaemonKey key) {
         std::ostringstream oss;
         auto c = new MetadataUpdate(daemon_state, key);
+       // FIXME remove post-nautilus: include 'id' for luminous mons
         oss << "{\"prefix\": \"mgr metadata\", \"who\": \""
-              << key.second << "\"}";
+           << key.second << "\", \"id\": \"" << key.second << "\"}";
         monc->start_mon_command({oss.str()}, {}, &c->outbl, &c->outs, c);
       };
       if (mgrmap.active_name.size()) {