]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/.../scrub_events: fix progress lifetime in deep_scan_object 57347/head
authorSamuel Just <sjust@redhat.com>
Tue, 19 Mar 2024 23:11:48 +0000 (23:11 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 8 May 2024 07:08:09 +0000 (10:08 +0300)
commit143b007b239bd4d8224a55a39880ca14dc648119
treebfe2883159e7fa2b96c9d1b9a012abb9f977e57a
parent96805dcf909541c4ca9a1e90258de8ae5b6fa1bc
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>
(cherry picked from commit 3276ad571640bc91fe290832a0001bd96f1f26de)
src/crimson/osd/osd_operations/scrub_events.cc