]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: refactor ClientRequest::do_process()
authorKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 05:11:37 +0000 (13:11 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Feb 2021 03:38:22 +0000 (11:38 +0800)
commite85d1f759c3345d2982140786357e3e67679da0c
treeb6f57cd038550ccb4d0ee3d7d76ec756830b3f49
parent68af4a9f12e1ffbac30e27f399cb27cf5faddacf
crimson/osd: refactor ClientRequest::do_process()

instead of using a local lambda which tries to have a single point
for handling both the happy path and failure path, it'd be simpler
to just early return if we fail to handle a request,

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd_operations/client_request.cc