]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerCasey Bodley <cbodley@redhat.com>
Tue, 3 Dec 2019 16:26:48 +0000 (11:26 -0500)
commit36c54a601c62894d0dccec49322cf7ea6bbb7d02
treeb8c6156fc9fb6aa98d720a9a1f47ee5e94d76b36
parent3719fceb99e42efd782da51a809eb23d1f87a8d4
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>
src/rgw/rgw_rados.cc