Skip to content

Commit

Permalink
Build: Fix unused variable warnings in db_bench_tool.cc (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk authored and udi-speedb committed Nov 22, 2023
1 parent 701697f commit 46fdccf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tools/db_bench_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7746,17 +7746,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);
Expand Down

0 comments on commit 46fdccf

Please sign in to comment.