Skip to content

Commit e827981

Browse files
committed
++ cache
1 parent d2a9cbd commit e827981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

storage/cache.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ void NHTFlowCache::finish()
180180
#ifdef WITH_CTT
181181
if (m_flow_table[i]->is_in_ctt) {
182182
send_export_request_to_ctt(m_flow_table[i]->m_flow.flow_hash_ctt);
183-
m_ctt_controller[m_flow_table[i]->m_flow.flow_hash_ctt]--;
184-
if (m_ctt_controller[m_flow_table[i]->m_flow.flow_hash_ctt] == 0) {
185-
m_ctt_controller.erase(m_flow_table[i]->m_flow.flow_hash_ctt);
183+
m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt]--;
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);
186186
}
187187
}
188188
#endif /* WITH_CTT */
189189
plugins_pre_export(m_flow_table[i]->m_flow);
190190
export_flow(i, FLOW_END_FORCED);
191191
}
192192
}
193-
if (m_ctt_controller.size() > 0){
193+
if (m_hashes_in_ctt.size() > 0){
194194
throw "bad CTT size";
195195
}
196196
}

0 commit comments

Comments
 (0)