]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/admin_socket: drop unused args
authorSage Weil <sage@redhat.com>
Thu, 5 Sep 2019 17:57:40 +0000 (12:57 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Oct 2019 21:30:52 +0000 (16:30 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/admin_socket.cc

index 57b31b4a5b25872203e16a99cac60a031e45368c..2503ae26573260bbb1d9e7f651809e8cf2533609 100644 (file)
@@ -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;
   }