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 b59ddf7 commit d2a9cbdCopy full SHA for d2a9cbd
storage/cache.cpp
@@ -180,12 +180,19 @@ void NHTFlowCache::finish()
180
#ifdef WITH_CTT
181
if (m_flow_table[i]->is_in_ctt) {
182
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);
186
+ }
187
}
188
#endif /* WITH_CTT */
189
plugins_pre_export(m_flow_table[i]->m_flow);
190
export_flow(i, FLOW_END_FORCED);
191
192
193
+ if (m_ctt_controller.size() > 0){
194
+ throw "bad CTT size";
195
196
197
198
void NHTFlowCache::flush(Packet &pkt, size_t flow_index, int return_flags)
0 commit comments