Skip to content

Commit 091cccf

Browse files
committed
++ cache
1 parent f9adb16 commit 091cccf

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
@@ -281,7 +281,7 @@ void NHTFlowCache::create_record(const Packet& packet, size_t flow_index, size_t
281281
if (only_metadata_required(m_flow_table[flow_index]->m_flow)) {
282282
if (m_hashes_in_ctt.find(m_flow_table[flow_index]->m_flow.flow_hash_ctt) != m_hashes_in_ctt.end())
283283
{
284-
throw "hash collision in create record!";
284+
//throw "hash collision in create record!";
285285
}
286286
m_hashes_in_ctt.insert(m_flow_table[flow_index]->m_flow.flow_hash_ctt);
287287
m_ctt_controller.create_record(m_flow_table[flow_index]->m_flow.flow_hash_ctt, m_flow_table[flow_index]->m_flow.time_first);
@@ -299,7 +299,7 @@ void NHTFlowCache::try_to_add_flow_to_ctt(size_t flow_index) noexcept
299299
if (only_metadata_required(m_flow_table[flow_index]->m_flow)) {
300300
if (m_hashes_in_ctt.find(m_flow_table[flow_index]->m_flow.flow_hash_ctt) != m_hashes_in_ctt.end())
301301
{
302-
throw "hash collision in try_to_add_flow_to_ctt!";
302+
//throw "hash collision in try_to_add_flow_to_ctt!";
303303
}
304304
m_hashes_in_ctt.insert(m_flow_table[flow_index]->m_flow.flow_hash_ctt);
305305
m_ctt_controller.create_record(m_flow_table[flow_index]->m_flow.flow_hash_ctt, m_flow_table[flow_index]->m_flow.time_first);

0 commit comments

Comments
 (0)