diff --git a/src/io/uring/Operation.hxx b/src/io/uring/Operation.hxx index a8c3b4adc..d915392d1 100644 --- a/src/io/uring/Operation.hxx +++ b/src/io/uring/Operation.hxx @@ -45,10 +45,15 @@ class Operation { CancellableOperation *cancellable = nullptr; public: + Operation() noexcept = default; + ~Operation() noexcept { CancelUring(); } + Operation(const Operation &) = delete; + Operation &operator=(const Operation &) = delete; + /** * Are we waiting for the operation to complete? */