From: Jason Dillaman Date: Thu, 9 Apr 2015 18:58:16 +0000 (-0400) Subject: librados_test_stub: added rados_ioctx_cct implementation X-Git-Tag: v9.0.1~152^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=03449104027aa935580ad0763a2f07b2797f596e;p=ceph.git librados_test_stub: added rados_ioctx_cct implementation Signed-off-by: Jason Dillaman --- diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index f9cf32bb0797..07d93629879b 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -143,6 +143,13 @@ extern "C" int rados_create(rados_t *cluster, const char * const id) { return 0; } +extern "C" rados_config_t rados_ioctx_cct(rados_ioctx_t ioctx) +{ + librados::TestIoCtxImpl *ctx = + reinterpret_cast(ioctx); + return reinterpret_cast(ctx->get_rados_client()->cct()); +} + extern "C" int rados_ioctx_create(rados_t cluster, const char *pool_name, rados_ioctx_t *ioctx) { librados::TestRadosClient *client =