]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: capture variable on stack by value
authorKefu Chai <kchai@redhat.com>
Sat, 19 Dec 2020 10:22:08 +0000 (18:22 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 19 Dec 2020 12:02:06 +0000 (20:02 +0800)
commit2e9d0b616e02b243d10b446914652146603d9321
tree5ab22e0f0d2c68e8903c14d06d952ec02f3f5236
parentdbfe7dca05e917fda9980c9def03f278ed6f5cf9
crimson/osd: capture variable on stack by value

start is passed either by std::move() or by a plain value. neither of
them ensure that the parameter can outlive the continuations in
`RecoveryBackend::scan_for_backfill()`. so, we should capture it by
value.

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