From: Zulai Wang Date: Sat, 22 May 2021 13:21:10 +0000 (+0800) Subject: rgw: remove quota soft threshold X-Git-Tag: v15.2.15~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43271%2Fhead;p=ceph.git rgw: remove quota soft threshold Remove quota soft threshold, which causes expensive checks for sharded buckets Fixes: 14eabd4aa7b8a2e2c0c43fe7f877ed2171277526 Signed-off-by: Zulai Wang (cherry picked from commit 32a39705765af0f87bec9101e5d337b797e05fea) Conflicts: src/common/options/rgw.yaml.in src/rgw/rgw_quota.cc Cherry-pick notes: - Options defined in src/common/options.cc in Octopus vs src/common/options/rgw.yaml.in - RGWQuotaCache::get_stats does not take optional_yeild or DoutPrefixProvider arguments in Octopus --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index fcba93ce41f4..1a69f141141a 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1461,7 +1461,6 @@ OPTION(rgw_data_log_num_shards, OPT_INT) // number of objects to keep data chang OPTION(rgw_data_log_obj_prefix, OPT_STR) // OPTION(rgw_bucket_quota_ttl, OPT_INT) // time for cached bucket stats to be cached within rgw instance -OPTION(rgw_bucket_quota_soft_threshold, OPT_DOUBLE) // threshold from which we don't rely on cached info for quota decisions OPTION(rgw_bucket_quota_cache_size, OPT_INT) // number of entries in bucket quota cache OPTION(rgw_bucket_default_quota_max_objects, OPT_INT) // number of objects allowed OPTION(rgw_bucket_default_quota_max_size, OPT_LONGLONG) // Max size of object in bytes diff --git a/src/common/options.cc b/src/common/options.cc index 85f4203be368..daaeb2d7c955 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6510,16 +6510,6 @@ std::vector