]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools: fix race condition in seq/rand bench 6791/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 6 Jul 2015 07:56:11 +0000 (09:56 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 3 Dec 2015 13:18:18 +0000 (14:18 +0100)
commitc2c6d02591519dfd15ddcb397ac440322a964deb
tree7c2eaf8f28d54ca5293f1d770beb696fe3e38d11
parenta619b621b0a7c670eeaf163d9e2b742d13c9f517
tools: fix race condition in seq/rand bench

Under certain conditions (like bench seq/rand -b 1024 -t 128) it is
possible that aio_read reads data into destination buffers before or
during memcmp execution, resulting in "[..] is not correct!" errors
even if actual objects are perfectly fine.
Also, moved latencty calculation around, so it is no longer affeted
by memcmp.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Conflicts:
src/common/obj_bencher.cc
src/common/obj_bencher.cc