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 5318107 commit 7aeb6f1Copy full SHA for 7aeb6f1
storage/cache.cpp
@@ -528,7 +528,8 @@ int NHTFlowCache::put_pkt(Packet& packet)
528
auto [row, flow_identification] =
529
find_flow_index(direct_key, reversed_key, packet.vlan_id);
530
531
- if (const size_t hash_value = std::holds_alternative<size_t>(flow_identification)) {
+ if (std::holds_alternative<size_t>(flow_identification)) {
532
+ const size_t hash_value = std::get<size_t>(flow_identification);
533
const size_t empty_place = get_empty_place(row, packet.ts) + (hash_value & m_line_mask);
534
create_record(packet, empty_place, hash_value);
535
export_expired(packet.ts);
0 commit comments