]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: generalize error handling in RGWShardCollectCR
authorCasey Bodley <cbodley@redhat.com>
Tue, 6 Oct 2020 21:59:24 +0000 (17:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 27 May 2022 19:47:31 +0000 (15:47 -0400)
commitaa1aca4ebe72128a4d3965b8b1ffbeec354e8184
tree8618ad3b8cf7ee14b2bf1926754da2c58cfdf956
parent293f6612e65c93fbb38b979b5fbc30b93c588b7a
rgw: generalize error handling in RGWShardCollectCR

RGWShardCollectCR was hard-coded to ignore ENOENT errors and print a
'failed to fetch log status' error message. this moves that logic into a
handle_result() virtual function. it also exposes the member variables
'status' and 'max_concurrent' as protected, so they can be consulted or
modified by overrides of handle_result() and spawn_next()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc
src/rgw/rgw_sync.cc
src/rgw/rgw_sync.h
src/rgw/rgw_trim_bilog.cc
src/rgw/rgw_trim_mdlog.cc