From e72ff1679a91ad51f942606b307c95f7fa1c2c1d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 29 Oct 2019 15:53:15 -0500 Subject: [PATCH] mds: send tell commands to asok infrastructure Signed-off-by: Sage Weil --- src/mds/MDSDaemon.cc | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 3f9f4ebafbf24..900d4418cead1 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -497,8 +497,6 @@ void MDSDaemon::handle_command(const cref_t &m) std::stringstream ss; std::string outs; bufferlist outbl; - Context *run_after = NULL; - bool need_reply = true; if (!session->auth_caps.allow_all()) { dout(1) << __func__ @@ -515,22 +513,12 @@ void MDSDaemon::handle_command(const cref_t &m) r = -EINVAL; outs = ss.str(); } else { - try { - r = _handle_command(cmdmap, m, &outbl, &outs, &run_after, &need_reply); - } catch (const bad_cmd_get& e) { - outs = e.what(); - r = -EINVAL; - } + cct->get_admin_socket()->queue_tell_command(m); + return; } priv.reset(); - if (need_reply) { - send_command_reply(m, mds_rank, r, outbl, outs); - } - - if (run_after) { - run_after->complete(0); - } + send_command_reply(m, mds_rank, r, outbl, outs); } const std::vector& MDSDaemon::get_commands() -- 2.47.3