]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object() 25506/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Nov 2018 18:45:54 +0000 (13:45 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 12 Dec 2018 13:50:30 +0000 (14:50 +0100)
commit3725d85509fe56f0a7faa9b8525a7a026c01d5cd
treec0f7b8cfeb59ab3c383c4c9150d77dba4f190654
parent3c33816079e12656fcb755073955b43a2021d1b0
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>
(cherry picked from commit f9d0ccf0069cb1a50621bdf8522038ab371f2a51)
src/rgw/rgw_data_sync.cc