]> 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)
committerCasey Bodley <cbodley@redhat.com>
Thu, 4 Feb 2021 21:11:30 +0000 (16:11 -0500)
commitd6172ea2336d53f74836a87f9ca758a95a89196f
tree0ad1cca366faad28ca5e72a34d5e81553df972ed
parent6c7b99f376d50aace45d2dbe1b24a5fa6e95bf1f
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