Merge pull request #11851 from jerry-shao/main

tsdb: Fixed typo in Histogram
pull/11856/head
Ganesh Vernekar 2023-01-17 09:57:36 +05:30 committed by GitHub
commit 46a7a2c911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -590,9 +590,9 @@ func (a *HistogramAppender) Recode(
return hc, app return hc, app
} }
// RecodeHistogramm converts the current histogram (in-place) to accommodate an expansion of the set of // RecodeHistogram converts the current histogram (in-place) to accommodate an expansion of the set of
// (positive and/or negative) buckets used. // (positive and/or negative) buckets used.
func (a *HistogramAppender) RecodeHistogramm( func (a *HistogramAppender) RecodeHistogram(
h *histogram.Histogram, h *histogram.Histogram,
pBackwardInter, nBackwardInter []Interjection, pBackwardInter, nBackwardInter []Interjection,
) { ) {

View File

@ -1172,7 +1172,7 @@ func (s *memSeries) appendHistogram(t int64, h *histogram.Histogram, appendID ui
if len(pBackwardInter)+len(nBackwardInter) > 0 { if len(pBackwardInter)+len(nBackwardInter) > 0 {
h.PositiveSpans = pMergedSpans h.PositiveSpans = pMergedSpans
h.NegativeSpans = nMergedSpans h.NegativeSpans = nMergedSpans
app.RecodeHistogramm(h, pBackwardInter, nBackwardInter) app.RecodeHistogram(h, pBackwardInter, nBackwardInter)
} }
// We have 3 cases here // We have 3 cases here
// - !okToAppend -> We need to cut a new chunk. // - !okToAppend -> We need to cut a new chunk.