]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: move unrelated continuation out of do_with()
authorKefu Chai <kchai@redhat.com>
Mon, 14 Dec 2020 15:56:11 +0000 (23:56 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Dec 2020 17:47:17 +0000 (01:47 +0800)
commitb030f717e021bbed5a8b8c0829bf3f53ad9f20e2
treef6344ef1d745814cca2af7b913279c3d8eb3227c
parent95b36903a28073be70954dca2990a4b4337c4b1b
crimson/osd: move unrelated continuation out of do_with()

if the variables held by do_with() is not used by the continuation, and
the continuation does not depend on the other continuations called in
the do_with(), let's move it out for smaller lexical scope. and hence
better readability.

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