From abbf21e8f1ee101a99ebedde066f3731bfb15833 Mon Sep 17 00:00:00 2001 From: weiqiaomiao Date: Thu, 28 Jul 2016 19:45:15 +0800 Subject: [PATCH] rgw: need to close_section in lc list op Signed-off-by: weiqiaomiao --- src/rgw/rgw_admin.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index be66db398b0..e7eb0bc5399 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -5209,10 +5209,13 @@ next: } if (opt_cmd == OPT_LC_LIST) { - formatter->open_array_section("life cycle progress"); + formatter->open_array_section("lifecycle_list"); map 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) { @@ -5230,6 +5233,9 @@ next: marker = iter->first; } } while (!bucket_lc_map.empty()); + + formatter->close_section(); //lifecycle list + formatter->flush(cout); } -- 2.47.3