]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object() 25310/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Nov 2018 18:45:54 +0000 (13:45 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 28 Nov 2018 18:56:52 +0000 (13:56 -0500)
commitf9d0ccf0069cb1a50621bdf8522038ab371f2a51
tree43428ca565e5be74bafda4f43e7533b6afafa0bc
parent4db915d06ddbe6306151a22543ee40f4ada4c4d8
rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object()

sync of deletes uses an If-UnModified-Since precondition, but does not
handle the corresponding ERR_PRECONDITION_FAILED error. treating this as
a failure means that we'll keep retrying the delete which will never
succeed. break this loop by treating ERR_PRECONDITION_FAILED as a
success

Fixes: http://tracker.ceph.com/issues/37448
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc