Skip to content

Commit c02f192

Browse files
committed
++ cache
1 parent 6a661df commit c02f192

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/cache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ void NHTFlowCache::push_to_export_queue(size_t flow_index) noexcept
175175

176176
void NHTFlowCache::finish()
177177
{
178+
auto it = std::find_if(m_hashes_in_ctt.begin(), m_hashes_in_ctt.end(), [](const auto& pair) {
179+
return pair.second <= 0;
180+
});
178181
for (decltype(m_cache_size) i = 0; i < m_cache_size; i++) {
179182
if (!m_flow_table[i]->is_empty()) {
180183
#ifdef WITH_CTT

0 commit comments

Comments
 (0)