]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "crimson/osd/osd_operations/snaptrim_event: fix lifetime on finally()"
authorMatan Breizman <mbreizma@redhat.com>
Mon, 27 Nov 2023 09:49:38 +0000 (09:49 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 9 Jan 2024 09:24:16 +0000 (09:24 +0000)
This reverts commit 84c5b6c578c1e64807eca5098d51193ee71e6106.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/osd_operations/snaptrim_event.cc

index 64b318580a473b794c37af6dd8645c5c0b64f9b9..da2c6298177b4a2ad30c0a9a0929fa07f15d4c80 100644 (file)
@@ -89,7 +89,6 @@ SnapTrimEvent::snap_trim_ertr::future<seastar::stop_iteration>
 SnapTrimEvent::start()
 {
   ShardServices &shard_services = pg->get_shard_services();
-  IRef ref = this;
   return interruptor::with_interruption([&shard_services, this] {
     return enter_stage<interruptor>(
       client_pp().wait_for_active
@@ -196,7 +195,7 @@ SnapTrimEvent::start()
   }, [this](std::exception_ptr eptr) -> snap_trim_ertr::future<seastar::stop_iteration> {
     logger().debug("{}: interrupted {}", *this, eptr);
     return crimson::ct_error::eagain::make();
-  }, pg).finally([this, ref=std::move(ref)] {
+  }, pg).finally([this] {
     logger().debug("{}: exit", *this);
     handle.exit();
   });