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: v12.2.9~120^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=700d2c31474ebc1edc8f80807c6adcd67b7c5873;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 (cherry picked from commit 695eb5ae67ccb3557b6ac340b4b84b285c61b351) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 69bfcd7dee36..4cafd8dcc10d 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1342,6 +1342,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 5d1f1fb9e333..bd7c02de71d7 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4534,6 +4534,11 @@ std::vector