Merge pull request #18920 from yaozongyou/wip-ceph-dencoder-add-types

ceph-dencoder: add support for cls_rgw_lc_obj_head

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Yuri Weinstein 2017-11-15 09:03:26 -08:00 committed by GitHub
commit d1c0777470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View 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)
{
}

View 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)

View 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)