diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index caae7f663..f8237670e 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -489,7 +489,8 @@ static bool ValidateCacheNumshardbits(const char* flagname, int32_t value) { return true; } -DEFINE_bool(verify_checksum, true, "Verify checksum for every block read" +DEFINE_bool(verify_checksum, true, + "Verify checksum for every block read" " from storage"); DEFINE_bool(statistics, false, "Database statistics"); @@ -4592,6 +4593,12 @@ void VerifyDBFromDB(std::string& truth_db_name) { abort(); } + if (thread->shared->write_rate_limiter) { + thread->shared->write_rate_limiter->Request( + key.size() + value_size_, Env::IO_HIGH, nullptr /*stats*/, + RateLimiter::OpType::kWrite); + } + Status s = db->Put(write_options_, key, gen.Generate(value_size_)); if (!s.ok()) { fprintf(stderr, "put error: %s\n", s.ToString().c_str());