});
}, [](std::exception_ptr) {
return seastar::now();
- }, pg).finally([this, ref] {
+ }, pg).finally([this, ref=std::move(ref)] {
logger().debug("{}: exit", *this);
handle.exit();
});
});
}, [](std::exception_ptr) {
return seastar::now();
- }, pg).finally([this, ref] {
+ }, pg).finally([this, ref=std::move(ref)] {
logger().debug("{}: exit", *this);
handle.exit();
});
}, [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] {
+ }, pg).finally([this, ref=std::move(ref)] {
logger().debug("{}: exit", *this);
handle.exit();
});
logger().debug("{}: trimmed snap={}", *this, trimmed);
});
}
- ).finally([this, pg_ref] {
+ ).finally([this, pg_ref=std::move(pg_ref)] {
logger().debug("{}: PG::on_active_actmap() finished trimming",
*this);
peering_state.state_clear(PG_STATE_SNAPTRIM);