]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: errororize PG::with_*_obc methods() 38305/head
authorKefu Chai <kchai@redhat.com>
Thu, 26 Nov 2020 10:39:15 +0000 (18:39 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 26 Nov 2020 10:44:25 +0000 (18:44 +0800)
commit17c9827ad8882c7945964c65734dfe329851e562
treece76d20d044e2f9a0b21f7fe24025a9efe2f92a4
parentc820d40aca149b7e38376eb7ab657f34327a3b20
crimson/osd: errororize PG::with_*_obc methods()

they all use `seastar::with_lock()` to ensure the obc lock is released
in the error handling path. but we cannot assume that
`seastar::with_lock()` always return `seastar::future<>`, so propogate
the error returned by the function passed to `with_lock()` using
errorator.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/crimson/osd/replicated_recovery_backend.cc
src/crimson/osd/replicated_recovery_backend.h