summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-09-20 20:44:36 -0700
committerSage Weil <sage@inktank.com>2013-09-20 20:44:36 -0700
commit4d0ee0b55b02c43aa14d91c6bf279ab5efc7daaa (patch)
tree19f658874e6489fee45602c945d7cebb5a14da12
parent303bc68e971c64fdad9547828cdc7376c6c090ee (diff)
downloadceph-4d0ee0b55b02c43aa14d91c6bf279ab5efc7daaa.tar.gz
ceph_test_rados: limit max_in_flight to objects/2
In particular, we need to allow all in-flight ops to be COPY_FROM. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/test/osd/TestRados.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/osd/TestRados.cc b/src/test/osd/TestRados.cc
index 970d4575244..be919161579 100644
--- a/src/test/osd/TestRados.cc
+++ b/src/test/osd/TestRados.cc
@@ -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;
}