From 07c30aafb40fdd1843ea86b5d8a82fc04f8a65ba Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Wed, 3 Jan 2018 15:49:51 +0800 Subject: [PATCH] rgw: format rgw_bucket_dir_header in ceph-dencoder * "new_instance" doesn't belong to field "stats", so put it in another section Signed-off-by: Bingyin Zhang --- src/cls/rgw/cls_rgw_types.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rgw/cls_rgw_types.cc b/src/cls/rgw/cls_rgw_types.cc index 7607dcd7799..234384f2745 100644 --- a/src/cls/rgw/cls_rgw_types.cc +++ b/src/cls/rgw/cls_rgw_types.cc @@ -527,8 +527,8 @@ void rgw_bucket_dir_header::dump(Formatter *f) const iter->second.dump(f); f->close_section(); } - ::encode_json("new_instance", new_instance, f); f->close_section(); + ::encode_json("new_instance", new_instance, f); } void rgw_bucket_dir::generate_test_instances(list& o) -- 2.39.5