Merge branch 'public-single-node' into victorialogs-wip

This commit is contained in:
Aliaksandr Valialkin 2024-06-11 17:32:18 +02:00
commit cbf8bfc2c3
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -196,7 +196,7 @@ func (das *dedupAggrShard) flush(ctx *dedupFlushCtx, f func(samples []pushSample
das.m = make(map[string]*dedupAggrSample, len(m)) das.m = make(map[string]*dedupAggrSample, len(m))
das.sizeBytes.Store(0) das.sizeBytes.Store(0)
das.itemsCount.Store(0) das.itemsCount.Store(0)
das.samplesBuf = das.samplesBuf[:0] das.samplesBuf = make([]dedupAggrSample, 0, len(das.samplesBuf))
} }
das.mu.Unlock() das.mu.Unlock()