From: Zhang Shaowen Date: Tue, 19 Jun 2018 09:19:07 +0000 (+0800) Subject: rgw: Limit the number of lifecycle rules on one bucket. X-Git-Tag: v14.0.1~937^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=695eb5ae67ccb3557b6ac340b4b84b285c61b351;p=ceph.git rgw: Limit the number of lifecycle rules on one bucket. Fixes: http://tracker.ceph.com/issues/24572 Signed-off-by: Zhang Shaowen --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 5d2bacb12ed..d596d0cd13a 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1294,6 +1294,7 @@ OPTION(rgw_content_length_compat, OPT_BOOL) // Check both HTTP_CONTENT_LENGTH an OPTION(rgw_lifecycle_work_time, OPT_STR) //job process lc at 00:00-06:00s OPTION(rgw_lc_lock_max_time, OPT_INT) // total run time for a single lc processor work OPTION(rgw_lc_max_objs, OPT_INT) +OPTION(rgw_lc_max_rules, OPT_U32) // Max rules set on one bucket OPTION(rgw_lc_debug_interval, OPT_INT) // Debug run interval, in seconds OPTION(rgw_script_uri, OPT_STR) // alternative value for SCRIPT_URI if not set in request OPTION(rgw_request_uri, OPT_STR) // alternative value for REQUEST_URI if not set in request diff --git a/src/common/options.cc b/src/common/options.cc index 83753de4410..b4ba17d01af 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5070,6 +5070,11 @@ std::vector