From ddca0dc87360ea800ea5ef3c9782c16d47a102c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Piotr=20Da=C5=82ek?= Date: Fri, 29 Jan 2016 11:38:53 +0100 Subject: [PATCH] tools/rados: fix wrong op/object sizes in rand/seq bench MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Metadata contain correct information about last bench write run, yet these are ignored in subsequent bench rand/seq runs, resulting in wrong perf numbers and failures when not using --no-verify. Signed-off-by: Piotr Dałek --- src/common/obj_bencher.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index a77febc6cb81c..8e6169a98b92f 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -230,6 +230,8 @@ int ObjBencher::aio_bench( cerr << "Must write data before running a read benchmark!" << std::endl; return r; } + object_size = prev_object_size; + op_size = prev_op_size; } char* contentsChars = new char[op_size]; -- 2.39.5