From 2f17cd47b5c3843f0c4363e2d3db6c7ae61ef300 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 8 Feb 2020 09:25:01 -0600 Subject: [PATCH] mon: fix tell command registration Pass full cmddesc, not just prefix. Broken by 3394b70ba18cffa49317141ff444ba9990d6170b Fixes: https://tracker.ceph.com/issues/44050 Signed-off-by: Sage Weil --- src/mon/Monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index e7afe45d68d3b..469cc17e3354a 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -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); } -- 2.39.5