Fixes: http://tracker.ceph.com/issues/38002
Signed-off-by: Lei Liu <liul.stone@gmail.com>
return op_ret;
}
-#define COMPLETE_MULTIPART_MAX_LEN (1024 * 1024) /* api defines max 10,000 parts, this should be enough */
- std::tie(op_ret, data) = rgw_rest_read_all_input(s, COMPLETE_MULTIPART_MAX_LEN);
+ const auto max_size = s->cct->_conf->rgw_max_put_param_size;
+ std::tie(op_ret, data) = rgw_rest_read_all_input(s, max_size);
if (op_ret < 0)
return op_ret;