-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: Replace COMPLETE_MULTIPART_MAX_LEN with rgw_max_put_param_size #26070
Conversation
@cbodley PTAL |
src/rgw/rgw_rest.cc
Outdated
#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, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. 1M is also the default for rgw_max_put_param_size, but it does make sense to allow configuration
but why change allow_chunked to false? especially when you expect large requests?
…_param_size Fixes: http://tracker.ceph.com/issues/38002 Signed-off-by: Lei Liu <liul.stone@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Probably a comment in the options.cc will also help that this param controls the final complete multipart max len as well |
Merge branch 'fix-bug-38002' of https://github.com/iliul/ceph into wip-eric-testing-1
wip-eric-testing-1: |
Replace COMPLETE_MULTIPART_MAX_LEN with configurable rgw_max_put_param_size
Fixes: http://tracker.ceph.com/issues/38002
Signed-off-by: Lei Liu liul.stone@gmail.com