From: Jason Dillaman Date: Wed, 20 Jun 2018 18:57:17 +0000 (-0400) Subject: test/librados_test_stub: add IoCtx::get_namespace API X-Git-Tag: v14.0.1~1002^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90c697328b765eabb8897b9b51665f6352ad06c0;p=ceph.git test/librados_test_stub: add IoCtx::get_namespace API Signed-off-by: Jason Dillaman --- diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index edfb98844652..19bbbdc7884c 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -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(io_ctx_impl); + return ctx->get_namespace(); +} + static int save_operation_result(int result, int *pval) { if (pval != NULL) { *pval = result;