}
void check_bucket_shards(uint64_t max_objs_per_shard, uint64_t num_shards,
- const rgw_bucket& bucket, uint64_t num_objs,
- bool& need_resharding, uint32_t *suggested_num_shards) override
+ uint64_t num_objs, bool& need_resharding, uint32_t *suggested_num_shards) override
{
if (num_objs > num_shards * max_objs_per_shard) {
ldout(store->ctx(), 0) << __func__ << ": resharding needed: stats.num_objects=" << num_objs
uint64_t num_objs, uint64_t size) = 0;
virtual void check_bucket_shards(uint64_t max_objs_per_shard, uint64_t num_shards,
- const rgw_bucket& bucket, uint64_t num_objs,
- bool& need_resharding, uint32_t *suggested_num_shards) = 0;
+ uint64_t num_objs, bool& need_resharding, uint32_t *suggested_num_shards) = 0;
virtual void update_stats(const rgw_user& bucket_owner, rgw_bucket& bucket, int obj_delta, uint64_t added_bytes, uint64_t removed_bytes) = 0;
cct->_conf.get_val<uint64_t>("rgw_max_objs_per_shard");
quota_handler->check_bucket_shards(max_objs_per_shard, num_source_shards,
- bucket, num_objs, need_resharding,
- &suggested_num_shards);
+ num_objs, need_resharding, &suggested_num_shards);
if (! need_resharding) {
return 0;
}