diff --git a/db/db_impl.cc b/db/db_impl.cc index c06d2f5bc..6c57a986d 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -2597,7 +2597,6 @@ Status DBImpl::GetImpl(const ReadOptions& options, StopWatch sw(env_, options_.statistics.get(), DB_GET); SequenceNumber snapshot; std::vector to_delete; - to_delete.reserve(options_.max_write_buffer_number); mutex_.Lock(); if (options.snapshot != nullptr) { snapshot = reinterpret_cast(options.snapshot)->number_; @@ -2665,7 +2664,6 @@ std::vector DBImpl::MultiGet(const ReadOptions& options, StopWatch sw(env_, options_.statistics.get(), DB_MULTIGET); SequenceNumber snapshot; std::vector to_delete; - to_delete.reserve(options_.max_write_buffer_number); mutex_.Lock(); if (options.snapshot != nullptr) {