Well, likely all the commit does is just appending a couple
of extra bytes. Though, strictly juding, a func should be
`std::move()`d before calling in those cases. Otherwise we
can miss e.g. the `operator() &&` overload.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
});
}
return loaded.safe_then_interruptible([func = std::move(func)](auto obc) {
- return func(std::move(obc));
+ return std::move(func)(std::move(obc));
});
}).finally([this, pgref, obc=std::move(obc)] {
logger().debug("with_head_obc: released {}", obc->get_oid());
});
}
return loaded.safe_then_interruptible([func = std::move(func)](auto clone) {
- return func(std::move(clone));
+ return std::move(func)(std::move(clone));
});
});
});