]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bucket count when stating account
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 04:28:55 +0000 (21:28 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 26 Apr 2013 19:10:14 +0000 (12:10 -0700)
We need to add up the num of buckets and not just set it
as we don't read the entire list of buckets in one operation.

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

index be2d1d43e35e65431784428ce8b4474647b0fbda..35bff735dbd3ebe74c7251d0abb5293e6a255801 100644 (file)
@@ -725,8 +725,10 @@ void RGWStatAccount::execute()
         buckets_size += bucket.size;
         buckets_size_rounded += bucket.size_rounded;
         buckets_objcount += bucket.count;
+
+        marker = iter->first;
       }
-      buckets_count = m.size();
+      buckets_count += m.size();
 
       done = (m.size() < max_buckets);
     }