mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Fix TSDB race while reading histograms
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
parent
9f206a7a05
commit
1acb701e5c
|
@ -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