Skip to content

Commit

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

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

Please sign in to comment.