]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados: add --pool <name> arg
authorSage Weil <sage@inktank.com>
Fri, 14 Jun 2013 05:08:36 +0000 (22:08 -0700)
committerSage Weil <sage@inktank.com>
Sun, 28 Jul 2013 22:34:41 +0000 (15:34 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit bcfbd0a3ffae6947464d930f636c8b35d1331e9d)

src/test/osd/TestRados.cc

index 5388f2c4c04208957dfcdc414e4776be7b4a64bb..3e44129fa332dbc94156f3051a92af0991699df3 100644 (file)
@@ -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);