From a8f204a8c17eca6cf284c6d9f7246cc008389dd2 Mon Sep 17 00:00:00 2001 From: Damir Zainullin Date: Sat, 11 Jan 2025 00:21:49 +0100 Subject: [PATCH] ++ cache row span --- storage/cacheRowSpan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/cacheRowSpan.cpp b/storage/cacheRowSpan.cpp index 18ee0b18..34ab8c71 100644 --- a/storage/cacheRowSpan.cpp +++ b/storage/cacheRowSpan.cpp @@ -75,7 +75,7 @@ std::optional CacheRowSpan::find_empty() const noexcept size_t CacheRowSpan::find_victim(const timeval& now) const noexcept { const FlowRecord** victim = const_cast(m_begin) + m_count - 1; - auto it = std::find_if(m_begin, m_begin + m_count, [&](const FlowRecord* flow) { + auto it = std::find_if(m_begin, m_begin + m_count, [&](const FlowRecord*& flow) { if (!flow->is_in_ctt) { victim = &flow; }