Skip to content

Commit

Permalink
rgw: CompleteMultipart applies its olh_epoch
Browse files Browse the repository at this point in the history
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 e4d1cc1)
  • Loading branch information
cbodley authored and Prashant D committed Jul 23, 2018
1 parent a80fe82 commit 74bf9f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rgw/rgw_op.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 74bf9f3

Please sign in to comment.