]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados: limit max_in_flight to objects/2
authorSage Weil <sage@inktank.com>
Sat, 21 Sep 2013 03:44:36 +0000 (20:44 -0700)
committerSage Weil <sage@inktank.com>
Sat, 21 Sep 2013 03:44:36 +0000 (20:44 -0700)
In particular, we need to allow all in-flight ops to be COPY_FROM.

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/osd/TestRados.cc

index 970d45752448f7835dc82705750a2b528742e52d..be91916157993439aa617b18b39ef1b02e0cedd2 100644 (file)
@@ -284,8 +284,8 @@ int main(int argc, char **argv)
     return 1;
   }
 
-  if (max_in_flight > objects) {
-    cerr << "Error: max_in_flight must be less than the number of objects"
+  if (max_in_flight * 2 > objects) {
+    cerr << "Error: max_in_flight must be <= than the number of objects / 2"
         << std::endl;
     return 1;
   }