lib/storage: fix aligning (#5860)

(cherry picked from commit d4c0615dcd)
This commit is contained in:
Dmytro Kozlov 2024-02-23 16:37:21 +01:00 committed by hagen1778
parent ce4fcd07ce
commit eb22083924
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -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