]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix tell command registration 33135/head
authorSage Weil <sage@redhat.com>
Sat, 8 Feb 2020 15:25:01 +0000 (09:25 -0600)
committerSage Weil <sage@redhat.com>
Mon, 10 Feb 2020 14:24:44 +0000 (08:24 -0600)
Pass full cmddesc, not just prefix.

Broken by 3394b70ba18cffa49317141ff444ba9990d6170b

Fixes: https://tracker.ceph.com/issues/44050
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index e7afe45d68d3b2d5d51b141be9e938ef519a3e58..469cc17e3354ac6b6172a4297f96a23fdb6eab09 100644 (file)
@@ -862,7 +862,7 @@ int Monitor::preinit()
       // not registerd by me
       continue;
     }
-    r = admin_socket->register_command(prefix, admin_hook,
+    r = admin_socket->register_command(command.cmdstring, admin_hook,
                                       command.helpstring);
     ceph_assert(r == 0);
   }