diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index f0f1d879b9..b2562f4e53 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -2102,10 +2102,10 @@ class Benchmark { cv_.SignalAll(); } - bool WaitForRecovery(uint64_t /*abs_time_us*/) { + bool WaitForRecovery(uint64_t abs_time_us) { InstrumentedMutexLock l(&mutex_); if (!recovery_complete_) { - cv_.Wait(/*abs_time_us*/); + cv_.TimedWait(abs_time_us); } if (recovery_complete_) { recovery_complete_ = false;