mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: fix aligning (#5860)
This commit is contained in:
parent
840ab60111
commit
d4c0615dcd
1 changed files with 1 additions and 2 deletions
|
@ -421,11 +421,10 @@ func (pt *partition) AddRows(rows []rawRow) {
|
||||||
var isDebug = false
|
var isDebug = false
|
||||||
|
|
||||||
type rawRowsShards struct {
|
type rawRowsShards struct {
|
||||||
|
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:w
|
||||||
flushDeadlineMs int64
|
flushDeadlineMs int64
|
||||||
|
|
||||||
shardIdx uint32
|
|
||||||
|
|
||||||
// Shards reduce lock contention when adding rows on multi-CPU systems.
|
// Shards reduce lock contention when adding rows on multi-CPU systems.
|
||||||
shards []rawRowsShard
|
shards []rawRowsShard
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue