From: Danny Al-Gaaf Date: Thu, 5 Mar 2015 05:22:53 +0000 (+0100) Subject: ObjectStoreTransactionBenchmark.cc: reduce scope of var X-Git-Tag: v9.0.0~186^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff760bee2687c18504ec6fef9b76bb70550cbafd;p=ceph.git ObjectStoreTransactionBenchmark.cc: reduce scope of var Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/objectstore/ObjectStoreTransactionBenchmark.cc b/src/test/objectstore/ObjectStoreTransactionBenchmark.cc index a82efb7e1ff9..1c6f76c04ed1 100644 --- a/src/test/objectstore/ObjectStoreTransactionBenchmark.cc +++ b/src/test/objectstore/ObjectStoreTransactionBenchmark.cc @@ -192,9 +192,10 @@ class PerfCase { } uint64_t rados_write_4k(int times) { - uint64_t start_time = 0, ticks = 0; + uint64_t ticks = 0; uint64_t len = Kib *4; for (int i = 0; i < times; i++) { + uint64_t start_time = 0; { Transaction t; ghobject_t oid = create_object();