From: James Liu Date: Tue, 1 Mar 2016 00:25:42 +0000 (-0800) Subject: fixed a bug for write bench with rados X-Git-Tag: v10.1.0~261^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7851%2Fhead;p=ceph.git fixed a bug for write bench with rados Signed-off-by: James Liu --- diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index a6dc3e8ae9d3..a79ce1bf7a08 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -508,7 +508,7 @@ int ObjBencher::write_bench(int secondsToRun, ++data.started; ++data.in_flight; if (max_objects && - data.started > (int)((data.object_size * max_objects + data.op_size - 1) / + data.started >= (int)((data.object_size * max_objects + data.op_size - 1) / data.op_size)) break; }