]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: tride_size must be more than min_stride_size
authorLiyan <liyan.wang@xtaotech.com>
Wed, 26 Jul 2017 12:27:32 +0000 (08:27 -0400)
committerLiyan <liyan.wang@xtaotech.com>
Wed, 26 Jul 2017 12:27:32 +0000 (08:27 -0400)
Fixes: http://tracker.ceph.com/issues/20775
Signed-off-by: Lianne Wang <liyan.wang@xtaotech.com>
src/test/osd/TestRados.cc

index b0c5ae7d476bb7320de7e6f369de2e0b91f33ab3..5895c9701a96a73673a6f753aaef2ca57e2c4197 100644 (file)
@@ -487,8 +487,8 @@ int main(int argc, char **argv)
        << "\tWrite stride min: " << min_stride_size << std::endl
        << "\tWrite stride max: " << max_stride_size << std::endl;
 
-  if (min_stride_size > max_stride_size) {
-    cerr << "Error: min_stride_size cannot be more than max_stride_size"
+  if (min_stride_size >= max_stride_size) {
+    cerr << "Error: max_stride_size must be more than min_stride_size"
         << std::endl;
     return 1;
   }