]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: multipart meta object shouldn't be versioned
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 18 Dec 2014 19:41:27 +0000 (11:41 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 19 Jan 2015 23:57:57 +0000 (15:57 -0800)
This object is already unique due to the upload id associated with it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_op.cc

index 6c52c9f7f9d5004723a88adee96df87d66691b49..bc6157dcc203d55fba9f9079429eb2908b277608 100644 (file)
@@ -2711,6 +2711,8 @@ void RGWInitMultipart::execute()
     obj.set_in_extra_data(true);
 
     RGWRados::Object op_target(store, s->bucket_info, *(RGWObjectCtx *)s->obj_ctx, obj);
+    op_target.set_versioning_disabled(true); /* no versioning for multipart meta */
+
     RGWRados::Object::Write obj_op(&op_target);
 
     obj_op.meta.owner = s->owner.get_id();