From: Yehuda Sadeh Date: Fri, 26 Apr 2013 04:28:55 +0000 (-0700) Subject: rgw: fix bucket count when stating account X-Git-Tag: v0.61~88^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7144ae86249ef6c9c282b469bf2ba510dc4a2e8c;p=ceph.git rgw: fix bucket count when stating account 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 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index be2d1d43e35e..35bff735dbd3 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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); }