tsdb: Fixed typo in Histogram

Signed-off-by: Mingjie Shao <com.jerryshao@jerryshao.com>
This commit is contained in:
Mingjie Shao 2023-01-16 16:19:31 +08:00
parent cb2be6e62f
commit 78d3c4e823
2 changed files with 3 additions and 3 deletions

View file

@ -590,9 +590,9 @@ func (a *HistogramAppender) Recode(
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.
func (a *HistogramAppender) RecodeHistogramm(
func (a *HistogramAppender) RecodeHistogram(
h *histogram.Histogram,
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 {
h.PositiveSpans = pMergedSpans
h.NegativeSpans = nMergedSpans
app.RecodeHistogramm(h, pBackwardInter, nBackwardInter)
app.RecodeHistogram(h, pBackwardInter, nBackwardInter)
}
// We have 3 cases here
// - !okToAppend -> We need to cut a new chunk.