]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: remove bucket_lc_prepare, add backoff
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 17 Feb 2022 15:55:14 +0000 (10:55 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 17 Mar 2022 15:07:24 +0000 (11:07 -0400)
commitc069eb7ff09b52003fa00a5cc83b1e52370032f5
treedc42bd15633768bbfec94b6f3c9cfa916b9f207b
parentb3fdd8894cbb9023a004536a90c8a555a310782a
rgwlc:  remove bucket_lc_prepare, add backoff

Remove now-unused RGWLC::bucket_lc_prepare.  Wrap serializer calls
in RGWLC::process(int index...) with simple backoff, limited to 5
retries.

In RGWLC::process(int index...), also open-coded the behavior of
RGWLC::bucket_lc_prepare(...), as the lock sharing between these
methods is error prone.  For now, that method exists, so that it can
be called from the single-bucket process.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h