aboutsummaryrefslogtreecommitdiffhomepage
path: root/tddb/td/db/TQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tddb/td/db/TQueue.cpp')
-rw-r--r--tddb/td/db/TQueue.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tddb/td/db/TQueue.cpp b/tddb/td/db/TQueue.cpp
index bcc2250a9..2e8802626 100644
--- a/tddb/td/db/TQueue.cpp
+++ b/tddb/td/db/TQueue.cpp
@@ -250,6 +250,7 @@ class TQueueImpl final : public TQueue {
auto collect_deleted_event_ids_time = 0.0;
if (callback_ != nullptr) {
vector<uint64> deleted_log_event_ids;
+ deleted_log_event_ids.reserve(size - keep_count);
for (auto it = q.events.begin(); it != end_it; ++it) {
auto &event = it->second;
if (event.log_event_id != 0) {