Skip to content

Commit b61451b

Browse files
committed
++ cache
1 parent e827981 commit b61451b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/cache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ void NHTFlowCache::finish()
178178
for (decltype(m_cache_size) i = 0; i < m_cache_size; i++) {
179179
if (!m_flow_table[i]->is_empty()) {
180180
#ifdef WITH_CTT
181-
if (m_flow_table[i]->is_in_ctt) {
181+
if (m_flow_table[i]->is_in_ctt && !m_flow_table[i]->is_waiting_for_export) {
182182
send_export_request_to_ctt(m_flow_table[i]->m_flow.flow_hash_ctt);
183-
m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt]--;
183+
m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] -= 1;
184184
if (m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] == 0) {
185185
m_hashes_in_ctt.erase(m_flow_table[i]->m_flow.flow_hash_ctt);
186186
}

0 commit comments

Comments
 (0)