]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: should capture seastar::do_with params by reference
authorXuehan Xu <xxhdx1985126@gmail.com>
Wed, 27 Jan 2021 11:04:47 +0000 (19:04 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Thu, 28 Jan 2021 02:44:00 +0000 (10:44 +0800)
commitb80a5c6cc9d8b62d9a7567767df3ea435a4beb87
tree730764d9767dcbe3f2d694f1c8d658dfe0906d89
parent0e7a7be5c065bd7f792b378a59c14b503370e394
crimson/osd: should capture seastar::do_with params by reference

The lambda within seastar::do_with need to use lvalue reference as its parameter,
otherwise it would be referencing a variable whose lifecycle ends when lambda finishes
runing

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