From: Jason Dillaman Date: Tue, 17 Nov 2015 00:00:16 +0000 (-0500) Subject: librados_test_stub: implemented ObjectReadOperation::stat X-Git-Tag: v10.0.2~35^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f3a040012bca2bf4a6a0bbaec6a29bd45508513;p=ceph.git librados_test_stub: implemented ObjectReadOperation::stat Signed-off-by: Jason Dillaman --- diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index f66d274ce796..220a0ea94e11 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -698,6 +698,19 @@ void ObjectReadOperation::sparse_read(uint64_t off, uint64_t len, o->ops.push_back(op); } +void ObjectReadOperation::stat(uint64_t *psize, time_t *pmtime, int *prval) { + TestObjectOperationImpl *o = reinterpret_cast(impl); + + ObjectOperationTestImpl op = boost::bind(&TestIoCtxImpl::stat, _1, _2, + psize, pmtime); + + if (prval != NULL) { + op = boost::bind(save_operation_result, + boost::bind(op, _1, _2, _3, _4), prval); + } + o->ops.push_back(op); +} + void ObjectWriteOperation::append(const bufferlist &bl) { TestObjectOperationImpl *o = reinterpret_cast(impl); o->ops.push_back(boost::bind(&TestIoCtxImpl::append, _1, _2, bl, _4));