]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados_test_stub: add IoCtx::get_namespace API
authorJason Dillaman <dillaman@redhat.com>
Wed, 20 Jun 2018 18:57:17 +0000 (14:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 21 Jun 2018 12:33:17 +0000 (08:33 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librados_test_stub/LibradosTestStub.cc

index edfb9884465276daa035e51985697724964225d9..19bbbdc7884c5d640dbeb49aa45bd74fe2c75e69 100644 (file)
@@ -738,6 +738,11 @@ void IoCtx::set_namespace(const std::string& nspace) {
   ctx->set_namespace(nspace);
 }
 
+std::string IoCtx::get_namespace() const {
+  TestIoCtxImpl *ctx = reinterpret_cast<TestIoCtxImpl*>(io_ctx_impl);
+  return ctx->get_namespace();
+}
+
 static int save_operation_result(int result, int *pval) {
   if (pval != NULL) {
     *pval = result;