]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/librados_test_stub/NeoradosTestStub.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / test / librados_test_stub / NeoradosTestStub.cc
index 882e80820c7e1762f9e06cf64f21042a3df1a693..0de2cd9029d6ec0fa9c870877b62400932b29ddb 100644 (file)
 #include <boost/system/system_error.hpp>
 
 namespace bs = boost::system;
+using namespace std::literals;
 using namespace std::placeholders;
 
 namespace neorados {
 namespace detail {
 
-struct Client {
+class Client {
+public:
   ceph::mutex mutex = ceph::make_mutex("NeoradosTestStub::Client");
 
   librados::TestRadosClient* test_rados_client;
@@ -548,7 +550,7 @@ void RADOS::execute(const Object& o, const IOContext& ioc, WriteOp&& op,
   }
 
   auto completion = create_aio_completion(std::move(c));
-  auto r = io_ctx->aio_operate(std::string{o}, *ops, completion, &snapc, 0U);
+  auto r = io_ctx->aio_operate(std::string{o}, *ops, completion, &snapc, nullptr, 0U);
   ceph_assert(r == 0);
 }