&DisableRequest<I>::handle_remove_snap, client_id);
ctx = new FunctionContext([this, snap_namespace, snap_name, ctx](int r) {
- RWLock::WLocker owner_locker(m_image_ctx->owner_lock);
- m_image_ctx->operations->execute_snap_remove(snap_namespace,
- snap_name.c_str(),
- ctx);
+ m_image_ctx->operations->snap_remove(snap_namespace,
+ snap_name.c_str(),
+ ctx);
});
m_image_ctx->op_work_queue->queue(ctx, 0);
void expect_snap_remove(MockTestImageCtx &mock_image_ctx,
const std::string &snap_name, int r) {
- EXPECT_CALL(*mock_image_ctx.operations, execute_snap_remove(_, StrEq(snap_name), _))
+ EXPECT_CALL(*mock_image_ctx.operations, snap_remove(_, StrEq(snap_name), _))
.WillOnce(WithArg<2>(CompleteContext(r, mock_image_ctx.image_ctx->op_work_queue)));
}