]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados_test_stub: added rados_ioctx_cct implementation
authorJason Dillaman <dillaman@redhat.com>
Thu, 9 Apr 2015 18:58:16 +0000 (14:58 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 9 Apr 2015 18:58:16 +0000 (14:58 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librados_test_stub/LibradosTestStub.cc

index f9cf32bb0797f62a7a00be9b6354ddea567f9a9f..07d93629879bfa9b63df46fcea45bb5681db931b 100644 (file)
@@ -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<librados::TestIoCtxImpl*>(ioctx);
+  return reinterpret_cast<rados_config_t>(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 =