]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
correct error of repeatedly adding io_size to off in do_bench_write 2415/head
authorjiangheng <jiangheng0511@gmail.com>
Sun, 7 Sep 2014 06:48:03 +0000 (14:48 +0800)
committerjiangheng <jiangheng0511@gmail.com>
Sun, 7 Sep 2014 06:48:03 +0000 (14:48 +0800)
Signed-off-by: jiangheng <jiangheng0511@gmail.com>
src/rbd.cc

index 9a411ec7a73050519a5e8cd72fd43c501612a5c8..fb2d8fa099286508251ebd1434bf65eccd270582 100644 (file)
@@ -924,7 +924,7 @@ static int do_bench_write(librbd::Image& image, uint64_t io_size,
 
   printf("  SEC       OPS   OPS/SEC   BYTES/SEC\n");
   uint64_t off;
-  for (off = 0; off < io_bytes; off += io_size) {
+  for (off = 0; off < io_bytes; ) {
     b.wait_for(io_threads - 1);
     i = 0;
     while (i < io_threads && off < io_bytes &&