]> 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)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 13 Sep 2021 16:27:48 +0000 (12:27 -0400)
commitbe45a84a6b8271876eb45989466f5b51952a198e
treea7e4f9b79a04f0c5ebd4dc9a01f7841b10f11934
parentbfd3115930e80b37680fda8fd97310e39c9f1cab
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