mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vmselect: typo fix after 0168e21fe32776e2f7f003f88e0e6e490eb2dcb0g
This commit is contained in:
parent
7aa5b48508
commit
55ed07add1
1 changed files with 1 additions and 1 deletions
|
@ -890,7 +890,7 @@ func (tbfw *tmpBlocksFileWrapper) WriteBlock(mb *storage.MetricBlock) error {
|
|||
metricName := mb.MetricName
|
||||
addrs := tbfw.m[string(metricName)]
|
||||
addrs = append(addrs, addr)
|
||||
if len(addrs) > 0 {
|
||||
if len(addrs) > 1 {
|
||||
// An optimization: avoid memory allocation and copy for already existing metricName key in tbfw.m.
|
||||
tbfw.m[string(metricName)] = addrs
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue