Skip to content

Commit

Permalink
rgw: fix the bug that part's index can't be removed after completing
Browse files Browse the repository at this point in the history
multipart upload when the bucket versioning is enabled.

Fixes: http://tracker.ceph.com/issues/19604

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
  • Loading branch information
Zhang Shaowen committed Apr 13, 2017
1 parent b43c180 commit decc01e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rgw/rgw_op.cc
Expand Up @@ -2669,6 +2669,7 @@ int RGWPutObjProcessor_Multipart::do_complete(size_t accounted_size,
complete_writing_data();

RGWRados::Object op_target(store, s->bucket_info, obj_ctx, head_obj);
op_target.set_versioning_disabled(true);
RGWRados::Object::Write head_obj_op(&op_target);

head_obj_op.meta.set_mtime = set_mtime;
Expand Down

0 comments on commit decc01e

Please sign in to comment.