Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: need to close_section in lc list op #12232

Merged
merged 1 commit into from Dec 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/rgw/rgw_admin.cc
Expand Up @@ -5209,10 +5209,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 @@ -5230,6 +5233,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