]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-dencoder: adding support for cls_rgw_lc_obj_head 18920/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Tue, 14 Nov 2017 13:42:25 +0000 (21:42 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Tue, 14 Nov 2017 13:42:25 +0000 (21:42 +0800)
After adding cls_rgw_lc_obj_head, we can using the following command
to look into lc processing related information:
rados -p default.rgw.log getomapheader lc.0 ./header.bin --namespace=lc
ceph-dencoder type cls_rgw_lc_obj_head import ./header.bin decode dump_json

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/cls/rgw/cls_rgw_types.cc
src/cls/rgw/cls_rgw_types.h
src/test/encoding/types.h

index 1917235627ec738135f115b2685cdb7a2cf3b0f8..5bc673ef97a4be6f97e80b2c770af54141ff9b16 100644 (file)
@@ -626,3 +626,13 @@ void cls_rgw_bucket_instance_entry::generate_test_instances(list<cls_rgw_bucket_
   ls.back()->reshard_status = CLS_RGW_RESHARD_IN_PROGRESS;
   ls.back()->new_bucket_instance_id = "new_instance_id";
 }
+  
+void cls_rgw_lc_obj_head::dump(Formatter *f) const 
+{
+  encode_json("start_date", start_date, f);
+  encode_json("marker", marker, f);
+}
+
+void cls_rgw_lc_obj_head::generate_test_instances(list<cls_rgw_lc_obj_head*>& ls)
+{
+}
index 97b53742b85729d85dd678951bbd7ccb3b7ca7aa..e330b57ccf84a6054b28baa804b73e07681a9b35 100644 (file)
@@ -1067,6 +1067,8 @@ struct cls_rgw_lc_obj_head
     DECODE_FINISH(bl);
   }
 
+  void dump(Formatter *f) const;
+  static void generate_test_instances(list<cls_rgw_lc_obj_head*>& ls);
 };
 WRITE_CLASS_ENCODER(cls_rgw_lc_obj_head)
 
index 5a0f8b7fe8d4f00496f1e0f96e8294e0804695e8..91851d34f27916a1580421a164a9022840794f18 100644 (file)
@@ -349,6 +349,7 @@ TYPE(cls_rgw_reshard_get_ret)
 TYPE(cls_rgw_reshard_remove_op)
 TYPE(cls_rgw_set_bucket_resharding_op)
 TYPE(cls_rgw_clear_bucket_resharding_op)
+TYPE(cls_rgw_lc_obj_head)
 
 #include "cls/rgw/cls_rgw_client.h"
 TYPE(rgw_bi_log_entry)