Skip to content

Commit

Permalink
Merge pull request #12232 from liewegas/wip-rgw-lclist
Browse files Browse the repository at this point in the history
rgw: need to close_section in lc list op

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Dec 1, 2016
2 parents 426c910 + abbf21e commit aed8692
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/rgw/rgw_admin.cc
Expand Up @@ -5457,10 +5457,13 @@ int main(int argc, char **argv)
}

if (opt_cmd == OPT_LC_LIST) {
formatter->open_array_section("life cycle progress");
formatter->open_array_section("lifecycle_list");
map<string, int> bucket_lc_map;
string marker;
#define MAX_LC_LIST_ENTRIES 100
if (max_entries < 0) {
max_entries = MAX_LC_LIST_ENTRIES;
}
do {
int ret = store->list_lc_progress(marker, max_entries, &bucket_lc_map);
if (ret < 0) {
Expand All @@ -5478,6 +5481,9 @@ int main(int argc, char **argv)
marker = iter->first;
}
} while (!bucket_lc_map.empty());

formatter->close_section(); //lifecycle list
formatter->flush(cout);
}


Expand Down

0 comments on commit aed8692

Please sign in to comment.