From: Kefu Chai Date: Sun, 6 Sep 2020 11:50:07 +0000 (+0800) Subject: rgw: set command desc for "cache list" X-Git-Tag: v16.1.0~1120^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7377c53b68d4cd6ffe4e11dfb9205bb2a24da5ae;p=ceph.git rgw: set command desc for "cache list" Signed-off-by: Kefu Chai --- 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" },