Skip to content

Commit

Permalink
rgw: simplify RGWObjTags dump
Browse files Browse the repository at this point in the history
Signed-off-by: Chang Liu <[email protected]>
  • Loading branch information
liuchang0812 committed Jun 4, 2019
1 parent 26e0bae commit c8582ff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rgw/rgw_json_enc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8582ff

Please sign in to comment.