]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: CompleteMultipart applies its olh_epoch
authorCasey Bodley <cbodley@redhat.com>
Fri, 1 Jun 2018 16:37:36 +0000 (12:37 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 23 Jul 2018 05:03:44 +0000 (01:03 -0400)
RGWCompleteMultipart was using get_system_versioning_params() to read an
olh_epoch, but was never applying it to the bucket index operation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e4d1cc1204dd588a6cdbb70b0b48403a97302412)

src/rgw/rgw_op.cc

index 3682a895d4fb9b3f551e0860f1412b93784534bc..13402607ed3a0688ed60f16589e7c3c0e592caec 100644 (file)
@@ -5748,6 +5748,7 @@ void RGWCompleteMultipart::execute()
   obj_op.meta.flags = PUT_OBJ_CREATE;
   obj_op.meta.modify_tail = true;
   obj_op.meta.completeMultipart = true;
+  obj_op.meta.olh_epoch = olh_epoch;
   op_ret = obj_op.write_meta(ofs, accounted_size, attrs);
   if (op_ret < 0)
     return;