From: Chang Liu Date: Tue, 14 May 2019 14:11:05 +0000 (+0800) Subject: rgw: simplify RGWObjTags dump X-Git-Tag: v15.1.0~2575^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c8582ff27a6aa53575594b8a676f0d084e9c2325;p=ceph-ci.git rgw: simplify RGWObjTags dump Signed-off-by: Chang Liu --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 24211399acf..046f9294949 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -1667,12 +1667,11 @@ void RGWOrphanSearchState::dump(Formatter *f) const void RGWObjTags::dump(Formatter *f) const { + f->open_object_section("tagset"); for (auto& tag: tag_map){ - f->open_object_section("tag_map"); - f->dump_string("key", tag.first); - f->dump_string("value", tag.second); - f->close_section(); + f->dump_string(tag.first.c_str(), tag.second); } + f->close_section(); } void lc_op::dump(Formatter *f) const