]> git.apps.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)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 26 Apr 2022 23:26:35 +0000 (19:26 -0400)
commited1a93145926ce657c2a5cd9ed17cd17e5483455
tree8afe3e8bdb3e42c0d7726e2d4210de71a3a711d7
parent3959e99201690ebd882594affb1a579cc236e9fa
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