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 cec9d71 commit a607524Copy full SHA for a607524
storage/cache.cpp
@@ -528,7 +528,7 @@ int NHTFlowCache::put_pkt(Packet& packet)
528
529
if (std::holds_alternative<size_t>(flow_id)) {
530
const size_t hash_value = std::get<size_t>(flow_id);
531
- const size_t empty_place = get_empty_place(row, packet.ts) + hash_value & m_line_mask;
+ const size_t empty_place = get_empty_place(row, packet.ts) + (hash_value & m_line_mask);
532
create_record(packet, empty_place, std::get<size_t>(flow_id));
533
export_expired(packet.ts);
534
return 0;
0 commit comments