Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
rgw: Fix a bug that multipart upload may exceed the quota. #12010
Multipart upload has immutable head. After we have uploaded a part, we invoke write_meta to write the head obj of this part while the head obj actually has been written at the beginning of uploading. The orig_exists is always true and orig_size is the size of the first chunk. But these information is not in quota cache. So we update the quota stats with incorrect data.
Signed-off-by: Zhang Shaowen firstname.lastname@example.org
@zhangsw, @yehudasa one run of the radosgw_admin.py gc-list testcase failed; since this depends on a multipart upload and subsequent gc and gc failed, this might indicate an unexpected failure in the upload step