We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e827981 commit b61451bCopy full SHA for b61451b
storage/cache.cpp
@@ -178,9 +178,9 @@ void NHTFlowCache::finish()
178
for (decltype(m_cache_size) i = 0; i < m_cache_size; i++) {
179
if (!m_flow_table[i]->is_empty()) {
180
#ifdef WITH_CTT
181
- if (m_flow_table[i]->is_in_ctt) {
+ if (m_flow_table[i]->is_in_ctt && !m_flow_table[i]->is_waiting_for_export) {
182
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]--;
+ m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] -= 1;
184
if (m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] == 0) {
185
m_hashes_in_ctt.erase(m_flow_table[i]->m_flow.flow_hash_ctt);
186
}
0 commit comments