mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: cleanup after d4c0615dcd
Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit c8d1d2ab72
)
This commit is contained in:
parent
eb22083924
commit
ab4fae9dc2
1 changed files with 3 additions and 1 deletions
|
@ -421,8 +421,10 @@ func (pt *partition) AddRows(rows []rawRow) {
|
||||||
var isDebug = false
|
var isDebug = false
|
||||||
|
|
||||||
type rawRowsShards struct {
|
type rawRowsShards struct {
|
||||||
|
// warn: order is important for aligning of 64-bit atomic operations on 32-bit arch
|
||||||
shardIdx uint32
|
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
|
flushDeadlineMs int64
|
||||||
|
|
||||||
// Shards reduce lock contention when adding rows on multi-CPU systems.
|
// Shards reduce lock contention when adding rows on multi-CPU systems.
|
||||||
|
|
Loading…
Reference in a new issue