Skip to content

Commit a7e73ff

Browse files
committed
++ cache
1 parent a87d7ae commit a7e73ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

storage/cache.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <sys/time.h>
4040
#include <optional>
4141
#include <endian.h>
42+
#include <algorithm>
4243

4344
#include "xxhash.h"
4445
#include "fragmentationCache/timevalUtils.hpp"
@@ -475,8 +476,8 @@ void NHTFlowCache::export_external(const Packet& pkt) noexcept
475476
}, key);
476477
const auto [row, flow_index, hash_value] = find_row(key);
477478
if (!flow_index.has_value()
478-
|| !m_flow_table[flow_index.value()]->is_in_ctt
479-
|| !m_flow_table[flow_index.value()]->offload_mode.has_value())
479+
|| !m_flow_table[flow_index.value()]->is_in_ctt
480+
|| !m_flow_table[flow_index.value()]->offload_mode.has_value()) {
480481
m_ctt_stats.export_packets_for_missing_flow++;
481482
return;
482483
}

0 commit comments

Comments
 (0)