From d4c0615dcd7177224138fbb6d0023b3678ae6262 Mon Sep 17 00:00:00 2001 From: Dmytro Kozlov Date: Fri, 23 Feb 2024 16:37:21 +0100 Subject: [PATCH] lib/storage: fix aligning (#5860) --- lib/storage/partition.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index 0b380dd64d..5e9c59a9c1 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -421,11 +421,10 @@ func (pt *partition) AddRows(rows []rawRow) { var isDebug = false type rawRowsShards struct { + shardIdx uint32 // Put flushDeadlineMs to the top in order to avoid unaligned memory access on 32-bit architectures:w flushDeadlineMs int64 - shardIdx uint32 - // Shards reduce lock contention when adding rows on multi-CPU systems. shards []rawRowsShard