]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: create the collected push ops use shared_ptr
authorKefu Chai <kchai@redhat.com>
Thu, 17 Dec 2020 03:15:04 +0000 (11:15 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Dec 2020 11:35:32 +0000 (19:35 +0800)
commitd53d23e3df9174be9daa2d8df5a64f0df6340606
tree9333ede7950ab247e1120e79f84e7730766b72fb
parentefaac1edd6d736377ccdd04b42d0db10ffc5816a
crimson/osd: create the collected push ops use shared_ptr

do_with() uses a unique_ptr for keeping the captured variables alive. so
it is practically the same thing in concept. but `do_with()` is more
distracting and difficult to reason about, it increases the indent level
also.

so use a lw_shared_ptr() for collecting the push ops map.

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