mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
rgw: fix multipart overwrite
Fixes: #3400 Removed a few lines of code that prematurely created the head part of the final object (before creating the manifest). Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
be6d563653
commit
84299e16f3
@ -1820,10 +1820,6 @@ void RGWCompleteMultipart::execute()
|
||||
attrs[RGW_ATTR_ETAG] = etag_bl;
|
||||
|
||||
target_obj.init(s->bucket, s->object_str);
|
||||
store->set_atomic(s->obj_ctx, target_obj);
|
||||
ret = store->put_obj_meta(s->obj_ctx, target_obj, 0, NULL, attrs, RGW_OBJ_CATEGORY_MAIN, PUT_OBJ_CREATE, NULL, NULL, NULL, NULL);
|
||||
if (ret < 0)
|
||||
return;
|
||||
|
||||
for (obj_iter = obj_parts.begin(); obj_iter != obj_parts.end(); ++obj_iter) {
|
||||
string oid = mp.get_part(obj_iter->second.num);
|
||||
|
Loading…
Reference in New Issue
Block a user