app/vmstorage/servers: properly copy MetricName into MetricBlock inside blockIterator.NextBlock

This should fix the issue at cf36bfa189
This commit is contained in:
Aliaksandr Valialkin 2022-10-07 02:56:49 +03:00
parent 1b2aeb621a
commit 916f1ab86c
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -200,7 +200,7 @@ func (bi *blockIterator) NextBlock(mb *storage.MetricBlock) bool {
if !bi.sr.NextMetricBlock() {
return false
}
mb.MetricName = bi.sr.MetricBlockRef.MetricName
mb.MetricName = append(mb.MetricName[:0], bi.sr.MetricBlockRef.MetricName...)
bi.sr.MetricBlockRef.BlockRef.MustReadBlock(&mb.Block)
return true
}