mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
Merge pull request #2415 from johnkeepmoving/fix-off-error-in-rbd.cc
correct error of repeatedly adding io_size to off in do_bench_write Reviewed-by: Loic Dachary <loic-201408@dachary.org>
This commit is contained in:
commit
21e84d6728
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user