summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-04-25 21:28:55 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-04-25 21:28:55 -0700
commit790e7b1dbd28ea7b3dca551ac9d8f475b361f938 (patch)
tree097dbbc8e1cc138005e3dd56d00b54a311e68bcd
parent3b32fd8843d61fea8628a1ecaf6983d11a526fc3 (diff)
downloadceph-790e7b1dbd28ea7b3dca551ac9d8f475b361f938.tar.gz
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 <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_op.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index e443eddb7ec..bcbbab141af 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);
}