]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "ceph_test_rados_api_*: expose nspace"
authorDavid Zafman <dzafman@redhat.com>
Wed, 10 Sep 2014 22:42:14 +0000 (15:42 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 20 Oct 2014 17:47:50 +0000 (10:47 -0700)
This reverts commit 977d289055d69ab8a7baaf7ef68c013019225833.

The nspace string doesn't need to be static because it isn't
set by a static function.

src/test/librados/TestCase.cc
src/test/librados/TestCase.h

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