From 7377c53b68d4cd6ffe4e11dfb9205bb2a24da5ae Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 6 Sep 2020 19:50:07 +0800 Subject: [PATCH] rgw: set command desc for "cache list" Signed-off-by: Kefu Chai --- src/rgw/services/svc_sys_obj_cache.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rgw/services/svc_sys_obj_cache.cc b/src/rgw/services/svc_sys_obj_cache.cc index 6943542b2a87..bce50a115b5a 100644 --- a/src/rgw/services/svc_sys_obj_cache.cc +++ b/src/rgw/services/svc_sys_obj_cache.cc @@ -508,9 +508,8 @@ static void cache_list_dump_helper(Formatter* f, class RGWSI_SysObj_Cache_ASocketHook : public AdminSocketHook { RGWSI_SysObj_Cache *svc; - static constexpr const char* admin_commands[4][3] = { - { "cache list", - "cache list name=filter,type=CephString,req=false", + static constexpr char* admin_commands[][2] = { + { "cache list name=filter,type=CephString,req=false", "cache list [filter_str]: list object cache, possibly matching substrings" }, { "cache inspect name=target,type=CephString,req=true", "cache inspect target: print cache element" }, -- 2.47.3