mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
Merge pull request #24444 from theanalyst/wip-reshard-stats
rgw: copy actual stats from the source shards during reshard
This commit is contained in:
commit
544019a848
@ -597,6 +597,7 @@ int rgw_bucket_update_stats(cls_method_context_t hctx, bufferlist *in, bufferlis
|
||||
dest.total_size += s.second.total_size;
|
||||
dest.total_size_rounded += s.second.total_size_rounded;
|
||||
dest.num_entries += s.second.num_entries;
|
||||
dest.actual_size += s.second.actual_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -256,6 +256,7 @@ bool rgw_cls_bi_entry::get_info(cls_rgw_obj_key *key, uint8_t *category, rgw_buc
|
||||
accounted_stats->num_entries++;
|
||||
accounted_stats->total_size += entry.meta.accounted_size;
|
||||
accounted_stats->total_size_rounded += cls_rgw_get_rounded_size(entry.meta.accounted_size);
|
||||
accounted_stats->actual_size += entry.meta.size;
|
||||
account = true;
|
||||
}
|
||||
break;
|
||||
|
@ -83,6 +83,7 @@ public:
|
||||
target.num_entries += entry_stats.num_entries;
|
||||
target.total_size += entry_stats.total_size;
|
||||
target.total_size_rounded += entry_stats.total_size_rounded;
|
||||
target.actual_size += entry_stats.actual_size;
|
||||
}
|
||||
if (entries.size() >= RESHARD_SHARD_WINDOW) {
|
||||
int ret = flush();
|
||||
|
Loading…
Reference in New Issue
Block a user