From 8489909150bb8f44a676c644ba49c46cad82fdb4 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Thu, 7 Sep 2023 19:41:35 +0800 Subject: [PATCH] Fix unused variable warnings in db_bench_tool.cc --- tools/db_bench_tool.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 58c28921f2..3f35a03dd8 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -7690,17 +7690,13 @@ class Benchmark { fprintf(stderr, "num reads to do %" PRIu64 "\n", reads_); Duration duration(FLAGS_duration, reads_); - uint64_t num_seek_to_first = 0; - uint64_t num_next = 0; while (!duration.Done(1)) { if (!iter->Valid()) { iter->SeekToFirst(); - num_seek_to_first++; } else if (!iter->status().ok()) { ErrorExit("Iterator error: %s", iter->status().ToString().c_str()); } else { iter->Next(); - num_next++; } thread->stats.FinishedOps(&single_db, single_db.db, 1, kSeek);