]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/.../scrub_events: fix progress lifetime in deep_scan_object
authorSamuel Just <sjust@redhat.com>
Tue, 19 Mar 2024 23:11:48 +0000 (23:11 +0000)
committerSamuel Just <sjust@redhat.com>
Tue, 19 Mar 2024 23:11:48 +0000 (23:11 +0000)
commit3276ad571640bc91fe290832a0001bd96f1f26de
tree585c189ac2409bbdefa9adc5de2b6c817c54810e
parentbed336a3e044e8da9d8137c03ed8f4d9406ad339
crimson/.../scrub_events: fix progress lifetime in deep_scan_object

seastar::repeat may or may not move the passed action after the first
invocation, so we can't actually rely on references to variables
captured by value being stable.  Instead, allocate with std::make_unique
and move into a finally lambda.

Fixes: https://tracker.ceph.com/issues/64996
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/osd_operations/scrub_events.cc