Skip to content

Commit a607524

Browse files
committed
++ cache
1 parent cec9d71 commit a607524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ int NHTFlowCache::put_pkt(Packet& packet)
528528

529529
if (std::holds_alternative<size_t>(flow_id)) {
530530
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;
531+
const size_t empty_place = get_empty_place(row, packet.ts) + (hash_value & m_line_mask);
532532
create_record(packet, empty_place, std::get<size_t>(flow_id));
533533
export_expired(packet.ts);
534534
return 0;

0 commit comments

Comments
 (0)