From: yuliyang Date: Mon, 6 Aug 2018 02:33:12 +0000 (+0800) Subject: rgw: cors rules num limit X-Git-Tag: v12.2.13~220^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c776f5064f8f1455d74ba8f80cb1ca784d12415;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 (cherry picked from commit c97ee932f380a673b52ffcb1986b015e06246844) Conflicts: src/common/options.cc - luminous lacks some options that are present in master --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 2b4361103f32..eaaab1fe62e0 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1584,3 +1584,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 3434c799d5aa..d72e1ddf5df3 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4444,6 +4444,10 @@ std::vector