diff --git a/db/db_bench.cc b/db/db_bench.cc index 0ea723d88..ecf40b943 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1908,7 +1908,7 @@ class Benchmark { int64_t read = 0; int64_t found = 0; ReadOptions options(FLAGS_verify_checksum, true); - std::vector keys(entries_per_batch_); + std::vector keys; std::vector values(entries_per_batch_); while (keys.size() < entries_per_batch_) { keys.push_back(AllocateKey());