]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: format rgw_bucket_dir_header in ceph-dencoder
authorBingyin Zhang <zhangbingyin@cloudin.cn>
Wed, 3 Jan 2018 07:49:51 +0000 (15:49 +0800)
committerBingyin Zhang <zhangbingyin@cloudin.cn>
Wed, 3 Jan 2018 07:49:51 +0000 (15:49 +0800)
* "new_instance" doesn't belong to field "stats", so put it in another section

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
src/cls/rgw/cls_rgw_types.cc

index 7607dcd779920302e769276f24539a389db07220..234384f27453d60df16de8a23e3a0b15b0c937ec 100644 (file)
@@ -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<rgw_bucket_dir*>& o)