From ab4fae9dc2f5b165a2a6d3e45788f58bd2067511 Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Fri, 23 Feb 2024 18:53:55 +0100 Subject: [PATCH] lib/storage: cleanup after d4c0615dcd7177224138fbb6d0023b3678ae6262 Signed-off-by: hagen1778 (cherry picked from commit c8d1d2ab721c7c501e375793ca98437d7da5c2d1) --- lib/storage/partition.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/storage/partition.go b/lib/storage/partition.go index 5e9c59a9c..cadf74258 100644 --- a/lib/storage/partition.go +++ b/lib/storage/partition.go @@ -421,8 +421,10 @@ func (pt *partition) AddRows(rows []rawRow) { var isDebug = false type rawRowsShards struct { + // warn: order is important for aligning of 64-bit atomic operations on 32-bit arch shardIdx uint32 - // Put flushDeadlineMs to the top in order to avoid unaligned memory access on 32-bit architectures:w + + // Put flushDeadlineMs to the top in order to avoid unaligned memory access on 32-bit architectures flushDeadlineMs int64 // Shards reduce lock contention when adding rows on multi-CPU systems.