Skip to content

Commit 0f3910d

Browse files
committed
++ cache
1 parent a607524 commit 0f3910d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/cache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,13 @@ int NHTFlowCache::put_pkt(Packet& packet)
541541
constexpr bool flow_is_waiting_for_export = false;
542542
#endif /* WITH_CTT */
543543

544+
#ifdef WITH_CTT
544545
if (m_flow_table[flow_index]->is_empty()) {
545546
create_record(packet, flow_index, std::get<size_t>(flow_id));
546547
export_expired(packet.ts);
547548
return 0;
548549
}
550+
#endif /* WITH_CTT */
549551

550552
packet.source_pkt = source_to_destination;
551553
/* Existing flow record was found, put flow record at the first index of flow line. */

0 commit comments

Comments
 (0)