Skip to content

Commit

Permalink
rgw: fix usage log aggregation
Browse files Browse the repository at this point in the history
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
  • Loading branch information
jmunhoz committed Mar 5, 2016
1 parent 59d098c commit 602c61b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cls/rgw/cls_rgw_types.h
Expand Up @@ -721,9 +721,7 @@ struct rgw_usage_log_entry {
epoch = e.epoch;
payer = e.payer;
}
if (payer != e.payer) {
return; /* can't aggregate differet payers */
}

map<string, rgw_usage_data>::const_iterator iter;
for (iter = e.usage_map.begin(); iter != e.usage_map.end(); ++iter) {
if (!categories || !categories->size() || categories->count(iter->first)) {
Expand Down

0 comments on commit 602c61b

Please sign in to comment.