Skip to content

Commit

Permalink
rgw: fix double counting in RGWRados::update_containers_stats()
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/16188
Signed-off-by: Albert Tu <albert.t@inwinstack.com>
  • Loading branch information
Albert Tu committed Jul 1, 2016
1 parent 5de4a9c commit 5dd825a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rgw/rgw_rados.cc
Expand Up @@ -10841,6 +10841,9 @@ int RGWRados::update_containers_stats(map<string, RGWBucketEnt>& m)
for (iter = m.begin(); iter != m.end(); ++iter) {
RGWBucketEnt& ent = iter->second;
rgw_bucket& bucket = ent.bucket;
ent.count = 0;
ent.size = 0;
ent.size_rounded = 0;

map<string, rgw_bucket_dir_header> headers;
int r = cls_bucket_head(bucket, RGW_NO_SHARD, headers);
Expand Down

0 comments on commit 5dd825a

Please sign in to comment.