diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index ec11c61012c..91d37fbfdb7 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -587,6 +587,18 @@ size_t ObjectOperation::size() { return o->ops.size(); } +void ObjectReadOperation::list_snaps(snap_set_t *out_snaps, int *prval) { + TestObjectOperationImpl *o = reinterpret_cast(impl); + + ObjectOperationTestImpl op = boost::bind(&TestIoCtxImpl::list_snaps, _1, _2, + out_snaps); + if (prval != NULL) { + op = boost::bind(save_operation_result, + boost::bind(op, _1, _2, _3), prval); + } + o->ops.push_back(op); +} + void ObjectReadOperation::read(size_t off, uint64_t len, bufferlist *pbl, int *prval) { TestObjectOperationImpl *o = reinterpret_cast(impl);