]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: use do_with to capture MOSDPGPull::take_pulls()'s return
authorXuehan Xu <xxhdx1985126@gmail.com>
Wed, 27 Jan 2021 11:07:58 +0000 (19:07 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 28 Jan 2021 08:17:37 +0000 (16:17 +0800)
commit50bf0bdce0d4199ffad7a3887a55b308d0ee74f6
tree341f518a737e03feb412e2eca0a78319479d4c88
parentee8a068f4589d7ffcbc24d1720571248bbb98564
crimson/osd: use do_with to capture MOSDPGPull::take_pulls()'s return

MOSDPGPull::take_pulls() returns a temporary object, so we need to use seastar::do_with
to create an object whose lives until seastar::do_with's inner continuation chain ends

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/osd/replicated_recovery_backend.cc