]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/obj_bencher.cc: make verify error fatal 7903/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 3 Mar 2016 10:30:53 +0000 (11:30 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 3 Mar 2016 16:47:24 +0000 (17:47 +0100)
commitd8756208a3213e099574e57e9b654feab84b0497
treeb7327a2e359e73650cb02b144b2548f260af7714
parent04fe9517cd049e97b845cef848f19a8b8dc3976c
common/obj_bencher.cc: make verify error fatal

When run without "--no-verify", all verification errors are noted,
but they are not forwarded/reported anywhere else but to cerr, which
will cause automated testing to ignore them. Make seq_read_bench and
rand_read_bench return -EIO on any verification error which will,
in turn, return it back to caller.

Fixes: #14974
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
(cherry picked from commit 658bba85c488a38e25bc598637258c263f711631)
src/common/obj_bencher.cc