]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools: fix race condition in seq/rand bench 5152/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>
Mon, 6 Jul 2015 07:56:11 +0000 (09:56 +0200)
commit9bcf5f065c4ed4b10d8f98961d1f99493bcdc9b8
tree503970d6e3b1cd39d338bead5333ce34e568c263
parentb3f364e86c525dff1dbc9724093b4b998c1e2016
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>
src/common/obj_bencher.cc