From: Sage Weil Date: Sat, 21 Sep 2013 03:44:36 +0000 (-0700) Subject: ceph_test_rados: limit max_in_flight to objects/2 X-Git-Tag: v0.71~103^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4d0ee0b55b02c43aa14d91c6bf279ab5efc7daaa;p=ceph.git 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 --- diff --git a/src/test/osd/TestRados.cc b/src/test/osd/TestRados.cc index 970d45752448..be9191615799 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; }