ObjectStoreTransactionBenchmark.cc: reduce scope of var

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2015-03-05 06:22:53 +01:00
parent 828fc737f1
commit ff760bee26

View File

@ -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();