]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: apply_olh_log ignores RGW_ATTR_OLH_VER decode error
authorCasey Bodley <cbodley@redhat.com>
Mon, 2 Dec 2019 21:59:05 +0000 (16:59 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 21 Jan 2020 22:13:15 +0000 (23:13 +0100)
commit96fe1c9eaf13b09336dd2bbbf4805e6ee5cbccb2
tree9c0d421b71d9d4bef7154b6fc4995d5f8441ebd7
parent959430aac2ff85ae90417bb550b566a2da4f24ea
rgw: apply_olh_log ignores RGW_ATTR_OLH_VER decode error

this resolves test failures that return 400 Bad Request after:

  apply_olh_log failed to decode olh ver ''

because olh_init_modification_impl() is writing an empty attribute:

  bufferlist verbl;
  op.setxattr(RGW_ATTR_OLH_VER, verbl);

on such decode errors, link_epoch will be set to 0, and will correctly
be overwritten by real epochs from the olh log

Fixes: https://tracker.ceph.com/issues/39142
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 36c54a601c62894d0dccec49322cf7ea6bbb7d02)
src/rgw/rgw_rados.cc