summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-06-13 22:08:36 -0700
committerSage Weil <sage@inktank.com>2013-07-28 15:34:41 -0700
commit86769f05ccc54bfec403bb9ea9a3a951bbcea301 (patch)
tree77009894208fb631396ed4ffa8e2a7a3e35bcfe3
parentb70a9abc5e3ae01204256f414bd7e69d083ed7c6 (diff)
downloadceph-86769f05ccc54bfec403bb9ea9a3a951bbcea301.tar.gz
ceph_test_rados: add --pool <name> arg
Signed-off-by: Sage Weil <sage@inktank.com> (cherry picked from commit bcfbd0a3ffae6947464d930f636c8b35d1331e9d)
-rw-r--r--src/test/osd/TestRados.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/osd/TestRados.cc b/src/test/osd/TestRados.cc
index 5388f2c4c04..3e44129fa33 100644
--- a/src/test/osd/TestRados.cc
+++ b/src/test/osd/TestRados.cc
@@ -194,10 +194,13 @@ int main(int argc, char **argv)
};
map<TestOpType, unsigned int> op_weights;
+ string pool_name = "data";
for (int i = 1; i < argc; ++i) {
if (strcmp(argv[i], "--max-ops") == 0)
ops = atoi(argv[++i]);
+ else if (strcmp(argv[i], "--pool") == 0)
+ pool_name = argv[++i];
else if (strcmp(argv[i], "--max-seconds") == 0)
max_seconds = atoi(argv[++i]);
else if (strcmp(argv[i], "--objects") == 0)
@@ -268,7 +271,6 @@ int main(int argc, char **argv)
}
char *id = getenv("CEPH_CLIENT_ID");
- string pool_name = "data";
VarLenGenerator cont_gen(size, min_stride_size, max_stride_size);
RadosTestContext context(pool_name, max_in_flight, cont_gen, id);