Skip to content

Commit

Permalink
Merge pull request #10148 from SUSE/wip-16599-jewel
Browse files Browse the repository at this point in the history
jewel: rgw: Swift API returns double space usage and objects of account metadata

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
  • Loading branch information
Loic Dachary committed Aug 17, 2016
2 parents e6f9f28 + 2afc176 commit 3167918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rgw/rgw_rados.cc
Expand Up @@ -10663,6 +10663,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 3167918

Please sign in to comment.