]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rados: fix wrong op/object sizes in rand/seq bench 7432/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Fri, 29 Jan 2016 10:38:53 +0000 (11:38 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Fri, 29 Jan 2016 10:38:53 +0000 (11:38 +0100)
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 <piotr.dalek@ts.fujitsu.com>
src/common/obj_bencher.cc

index a77febc6cb81c2d3a944952b086221af09acddb3..8e6169a98b92f97d573ad37760577b0da4c79f46 100644 (file)
@@ -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];