The lambda within seastar::do_with need to use lvalue reference as its parameter,
otherwise it would be referencing a variable whose lifecycle ends when lambda finishes
runing
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
recovery_info.version,
PushOp(),
[this, &recovery_info, &progress, stat]
- (auto new_progress, auto available, auto v, auto pop) {
+ (auto& new_progress, auto& available, auto& v, auto& pop) {
return read_metadata_for_push_op(recovery_info.soid,
progress, new_progress,
v, &pop).then([&](eversion_t local_ver) mutable {