]> 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>
Mon, 27 Nov 2017 20:57:15 +0000 (15:57 -0500)
commit1a3fcc70c0747791aa423cd0aa7d2596eaf3d73c
tree3536e8e47782a961c762e603cf697f62bb67e21a
parent9114e5e50995f0c7d2be5c24aa4712d89cd89f48
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>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h