]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set command desc for "cache list" 37011/head
authorKefu Chai <kchai@redhat.com>
Sun, 6 Sep 2020 11:50:07 +0000 (19:50 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Sep 2020 11:50:27 +0000 (19:50 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/services/svc_sys_obj_cache.cc

index 6943542b2a8738a53fbd27f05f0d42c1df80787c..bce50a115b5acfa856336eee49f04993e9f76930 100644 (file)
@@ -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" },