]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fixed a bug for write bench with rados 7851/head
authorJames Liu <james.liu@ssi.samsung.com>
Tue, 1 Mar 2016 00:25:42 +0000 (16:25 -0800)
committerJames Liu <james.liu@ssi.samsung.com>
Tue, 1 Mar 2016 00:25:42 +0000 (16:25 -0800)
Signed-off-by: James Liu <james.liu@ssi.samsung.com>
src/common/obj_bencher.cc

index a6dc3e8ae9d3551454ad4511098971f16a6af830..a79ce1bf7a0815b5cc5e0fdce19ee3992dff5f58 100644 (file)
@@ -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;
   }