// allocate a self-managed snapshot id if this a new pool to force
// self-managed snapshot mode
- auto ctx = new FunctionContext([this](int r) {
+ auto ctx = new LambdaContext([this](int r) {
r = m_io_ctx.selfmanaged_snap_create(&m_snap_id);
handle_create_snapshot(r);
});
void ValidatePoolRequest<I>::remove_snapshot() {
ldout(m_cct, 5) << dendl;
- auto ctx = new FunctionContext([this](int r) {
+ auto ctx = new LambdaContext([this](int r) {
r = m_io_ctx.selfmanaged_snap_remove(m_snap_id);
handle_remove_snapshot(r);
});