mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 03:24:05 -08:00
Merge pull request #9053 from codesome/histo-race
Fix TSDB race while reading histograms
This commit is contained in:
commit
a979d8e1dc
|
@ -2889,7 +2889,7 @@ func (it *memSafeIterator) Next() bool {
|
|||
return false
|
||||
}
|
||||
it.i++
|
||||
if it.Iterator.ChunkEncoding() == chunkenc.EncSHS || it.total-it.i > 4 {
|
||||
if it.total-it.i > 4 {
|
||||
return it.Iterator.Next()
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue