]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Add retry_raced_bucket_write
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Nov 2017 20:51:42 +0000 (15:51 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 4 Jan 2018 22:35:49 +0000 (17:35 -0500)
commitdea29460ed513f965de2dcac9e29180b06d56b58
tree1cb915b65616748ddaa9a8549f7a1dc944950ab2
parent2e3a89f019a776ad5731e49cd16b51b3f8e2e807
rgw: Add retry_raced_bucket_write

If the OSD informs us that our bucket info is out of date when we need
to write, we should have a way to update it.

This template function allows us to wrap relevant sections of code so
they'll be retried against new bucket info on -ECANCELED.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 1a3fcc70c0747791aa423cd0aa7d2596eaf3d73c)
Fixes: http://tracker.ceph.com/issues/22517
src/rgw/rgw_op.cc
src/rgw/rgw_op.h