From: Sage Weil Date: Thu, 5 Sep 2019 17:57:40 +0000 (-0500) Subject: common/admin_socket: drop unused args X-Git-Tag: v15.1.0~1323^2~50 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=675bbf32112931143782903a0d023f833c1bcd7a;p=ceph.git common/admin_socket: drop unused args Signed-off-by: Sage Weil --- diff --git a/src/common/admin_socket.cc b/src/common/admin_socket.cc index 57b31b4a5b2..2503ae26573 100644 --- a/src/common/admin_socket.cc +++ b/src/common/admin_socket.cc @@ -399,10 +399,6 @@ int AdminSocket::execute_command(const std::string& cmd, ceph::bufferlist& out) lderr(m_cct) << "AdminSocket: request '" << cmd << "' not defined" << dendl; return false; } - string args; - if (match != cmd) { - args = cmd.substr(match.length() + 1); - } // Drop lock to avoid cycles in cases where the hook takes // the same lock that was held during calls to register/unregister, @@ -417,11 +413,11 @@ int AdminSocket::execute_command(const std::string& cmd, ceph::bufferlist& out) in_hook = false; in_hook_cond.notify_all(); if (!success) { - ldout(m_cct, 0) << "AdminSocket: request '" << match << "' args '" << args - << "' to " << match_hook << " failed" << dendl; + ldout(m_cct, 0) << "AdminSocket: request '" << match + << "' to " << match_hook << " failed" << dendl; out.append("failed"); } else { - ldout(m_cct, 5) << "AdminSocket: request '" << match << "' '" << args + ldout(m_cct, 5) << "AdminSocket: request '" << match << "' to " << match_hook << " returned " << out.length() << " bytes" << dendl; }