Skip to content

Commit

Permalink
++ cache row span
Browse files Browse the repository at this point in the history
  • Loading branch information
Zadamsa committed Jan 10, 2025
1 parent 88ba467 commit a8f204a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/cacheRowSpan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ std::optional<size_t> CacheRowSpan::find_empty() const noexcept
size_t CacheRowSpan::find_victim(const timeval& now) const noexcept
{
const FlowRecord** victim = const_cast<const FlowRecord**>(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;
}
Expand Down

0 comments on commit a8f204a

Please # to comment.