]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_*: expose nspace
authorSage Weil <sage@redhat.com>
Mon, 8 Sep 2014 20:42:43 +0000 (13:42 -0700)
committerSage Weil <sage@redhat.com>
Tue, 9 Sep 2014 20:01:41 +0000 (13:01 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/TestCase.cc
src/test/librados/TestCase.h

index 21124ce2251c80548f8544689f1cb105b1f45ccc..7f072fd850f35043fa010bbe4190a7c084917c9f 100644 (file)
@@ -8,6 +8,7 @@
 using namespace librados;
 
 std::string RadosTest::pool_name;
+std::string RadosTest::nspace;
 rados_t RadosTest::s_cluster = NULL;
 
 void RadosTest::SetUpTestCase()
@@ -25,7 +26,7 @@ void RadosTest::SetUp()
 {
   cluster = RadosTest::s_cluster;
   ASSERT_EQ(0, rados_ioctx_create(cluster, pool_name.c_str(), &ioctx));
-  std::string nspace = get_temp_pool_name();
+  nspace = get_temp_pool_name();
   rados_ioctx_set_namespace(ioctx, nspace.c_str());
   ASSERT_FALSE(rados_ioctx_pool_requires_alignment(ioctx));
 }
index 79b1465f871883e11d12d7ec99f1526d372eb0f3..e8b7b9a30c99815476635ef15e532fdbccdbee9d 100644 (file)
@@ -28,6 +28,7 @@ protected:
   static void cleanup_default_namespace(rados_ioctx_t ioctx);
   static rados_t s_cluster;
   static std::string pool_name;
+  static std::string nspace;
 
   virtual void SetUp();
   virtual void TearDown();