From: Jason Dillaman Date: Thu, 11 May 2017 00:40:19 +0000 (-0400) Subject: test/librados_test_stub: add new aio_operate overloads for tracing X-Git-Tag: v12.1.0~10^2~67^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6dfcb11983305d06f14268b075f9a4a961b9c406;p=ceph.git test/librados_test_stub: add new aio_operate overloads for tracing Signed-off-by: Jason Dillaman --- diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index 2c747e764403..059c19114a6f 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -410,6 +410,12 @@ int IoCtx::aio_operate(const std::string& oid, AioCompletion *c, return ctx->aio_operate_read(oid, *ops, c->pc, flags, pbl); } +int IoCtx::aio_operate(const std::string& oid, AioCompletion *c, + ObjectReadOperation *op, int flags, + bufferlist *pbl, const blkin_trace_info *trace_info) { + return aio_operate(oid, c, op, flags, pbl); +} + int IoCtx::aio_operate(const std::string& oid, AioCompletion *c, ObjectWriteOperation *op) { TestIoCtxImpl *ctx = reinterpret_cast(io_ctx_impl); @@ -432,6 +438,13 @@ int IoCtx::aio_operate(const std::string& oid, AioCompletion *c, return ctx->aio_operate(oid, *ops, c->pc, &snapc, 0); } +int IoCtx::aio_operate(const std::string& oid, AioCompletion *c, + ObjectWriteOperation *op, snap_t seq, + std::vector& snaps, + const blkin_trace_info *trace_info) { + return aio_operate(oid, c, op, seq, snaps); +} + int IoCtx::aio_remove(const std::string& oid, AioCompletion *c) { TestIoCtxImpl *ctx = reinterpret_cast(io_ctx_impl); return ctx->aio_remove(oid, c->pc);