]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bucket listing when reaching limit
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 05:11:27 +0000 (22:11 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 19:10:14 +0000 (12:10 -0700)
Bucket listing was broken when limit was set.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_op.cc

index 70d51f484d79b474f9828076079391a257496ed1..4e9553940f6069413087cad9de5ad3a6b7ee7842 100644 (file)
@@ -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);