]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "crushtool: safeguard for missing --num-rep when --test" 2512/head
authorLoic Dachary <loic-201408@dachary.org>
Wed, 17 Sep 2014 12:56:10 +0000 (14:56 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Wed, 17 Sep 2014 12:56:10 +0000 (14:56 +0200)
This reverts commit 10b8966c8da38f8ae5ac7dbb2e16a5e45e502ba3.

src/tools/crushtool.cc

index 10adc11a49541b007e049b8bd28dc9260b684c2b..ccb0efda74a7c7d57b7158520e95347daa716073 100644 (file)
@@ -729,10 +729,6 @@ int main(int argc, const char **argv)
   }
 
   if (test) {
-    if (tester.get_min_rep() < 1 || tester.get_max_rep() < 1) {
-      cerr << me << " --test requires --num-rep with a value > 0 " << std::endl;
-      exit(1);
-    }
     if (tester.get_output_utilization_all() ||
        tester.get_output_utilization())
       tester.set_output_statistics(true);