From: yuliyang Date: Mon, 6 Aug 2018 02:33:12 +0000 (+0800) Subject: rgw: cors rules num limit X-Git-Tag: v14.0.1~625^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c97ee932f380a673b52ffcb1986b015e06246844;p=ceph.git rgw: cors rules num limit According to AWS S3, an cors rules can have up to 100 rules. Signed-off-by: yuliyang --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c58e923cab84..6180beb2a40f 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1540,3 +1540,4 @@ OPTION(rgw_max_objs_per_shard, OPT_INT) OPTION(rgw_reshard_thread_interval, OPT_U32) // maximum time between rounds of reshard thread processing OPTION(rgw_acl_grants_max_num, OPT_INT) // According to AWS S3(http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html), An ACL can have up to 100 grants. +OPTION(rgw_cors_rules_max_num, OPT_INT) // According to AWS S3(http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html), An cors can have up to 100 rules. diff --git a/src/common/options.cc b/src/common/options.cc index c5afe4c7a895..72c482fc942c 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4941,6 +4941,10 @@ std::vector