Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
pull/9439/head
Ganesh Vernekar 3 years ago
parent 59d77ff16d
commit 9d81b2d610
No known key found for this signature in database
GPG Key ID: 0F8729A5EB59B965

@ -609,7 +609,13 @@ func (s *memSeries) appendHistogram(t int64, sh histogram.SparseHistogram, appen
// We check for Appendable before appendPreprocessor because in case it ends up creating a new chunk,
// we need to know if there was also a counter reset or not to set the meta properly.
app, _ := s.app.(*chunkenc.HistoAppender)
posInterjections, negInterjections, ok, counterReset := app.Appendable(sh)
var (
posInterjections, negInterjections []chunkenc.Interjection
ok, counterReset bool
)
if app != nil {
posInterjections, negInterjections, ok, counterReset = app.Appendable(sh)
}
c, sampleInOrder, chunkCreated := s.appendPreprocessor(t, chunkenc.EncSHS, chunkDiskMapper)
if !sampleInOrder {

Loading…
Cancel
Save