From ab29bed2fc9f961fe895de1086a8208e21ddaddc Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Thu, 29 Nov 2018 01:05:31 +0000 Subject: [PATCH] rgw: fix issues with 'enforce bounds' patch The patch to enforce bounds on max-keys/max-uploads/max-parts had a few issues that would prevent us from compiling it. Instead of changing the code provided by the submitter, we're addressing them in a separate commit to maintain the DCO. Signed-off-by: Joao Eduardo Luis Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 29bc434a6a81a2e5c5b8cfc4c8d5c82ca5bf538a) mimic specific fixes: As the largeish change from master g_conf() isn't in mimic yet, use the g_conf global structure, also make rgw_op use the value from req_info ceph context as we do for all the requests --- src/common/options.cc | 2 +- src/rgw/rgw_op.cc | 4 +++- src/rgw/rgw_op.h | 19 ++++++++++++------- src/rgw/rgw_rest.cc | 8 ++++++-- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index a543256d8ad3..d906d1d04e10 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6238,7 +6238,7 @@ std::vector