From 10522b9d92790d06eb79f050b087a3cdb7e6748d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 30 Jan 2019 16:44:35 -0600 Subject: [PATCH] mgr/DaemonServer: use a luminous-compatible 'mgr metadata' command In luminous it was 'id', in mimic it changed to 'who'. Signed-off-by: Sage Weil --- src/mgr/DaemonServer.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index bd3b88b98db90..00c3f7819aa80 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -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()) { -- 2.39.5