summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-04-25 22:11:27 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-04-26 12:10:14 -0700
commitf2df87625cbc0f08d3e4ab4619f2ef642d9bdad8 (patch)
treeff3f51902f747757774ea9ca81e044dced5cf8c3
parent2264078a61e94c7c817bce694e24a926763ea1d2 (diff)
downloadceph-f2df87625cbc0f08d3e4ab4619f2ef642d9bdad8.tar.gz
rgw: fix bucket listing when reaching limit
Bucket listing was broken when limit was set. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_op.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index 70d51f484d7..4e9553940f6 100644
--- a/src/rgw/rgw_op.cc
+++ b/src/rgw/rgw_op.cc
@@ -680,7 +680,7 @@ void RGWListBuckets::execute()
total_count += m.size();
- done = (m.size() < read_count);
+ done = (m.size() < read_count || total_count == limit);
if (m.size()) {
send_response_data(buckets);