]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: allow larger payload for period commit
authorCasey Bodley <cbodley@redhat.com>
Wed, 5 Apr 2017 18:20:20 +0000 (14:20 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 5 Apr 2017 18:32:43 +0000 (14:32 -0400)
testing with 3 zonegroups and 3 zones each, the period json grew larger
than 4k and caused decode failures on period commit

updated to use the new config variable rgw_max_put_param_size

Fixes: http://tracker.ceph.com/issues/19505
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_realm.cc

index 406f3d40a993ba3f899067d54220d1cb8f1c9c43..d5ef848b805cb9b810cd2956019f1c459a1c76c3 100644 (file)
@@ -84,9 +84,9 @@ void RGWOp_Period_Post::execute()
   period.init(cct, store, false);
 
   // decode the period from input
-#define PERIOD_MAX_LEN 4096
+  const auto max_size = cct->_conf->rgw_max_put_param_size;
   bool empty;
-  http_ret = rgw_rest_get_json_input(cct, s, period, PERIOD_MAX_LEN, &empty);
+  http_ret = rgw_rest_get_json_input(cct, s, period, max_size, &empty);
   if (http_ret < 0) {
     lderr(cct) << "failed to decode period" << dendl;
     return;