]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: prefix api test pools
authorSage Weil <sage.weil@dreamhost.com>
Mon, 22 Aug 2011 00:53:03 +0000 (17:53 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 22 Aug 2011 00:53:19 +0000 (17:53 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/test/rados-api/test.cc

index 5e37fac037b5fcd1e81c971b9248450d0dcc2040..ba9c5f2082edc39137c8fa0952fa9657372ba681 100644 (file)
@@ -17,7 +17,9 @@ std::string get_temp_pool_name()
   for (size_t i = 0; i < sizeof(out) - 1; ++i) {
     out[i] = 'A' + (rand() % 26);
   }
-  return out;
+  std::string prefix("test-rados-api-");
+  prefix += out;
+  return prefix;
 }
 
 std::string create_one_pool(const std::string &pool_name, rados_t *cluster)