Fix TSDB race while reading histograms

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar 2021-07-05 21:51:35 +05:30
parent 9f206a7a05
commit 1acb701e5c
No known key found for this signature in database
GPG Key ID: 0F8729A5EB59B965
1 changed files with 1 additions and 1 deletions

View File

@ -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