mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Rename some variables in Commit()
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
This commit is contained in:
parent
fb2ebe1c3d
commit
e0d7cef545
|
@ -848,8 +848,8 @@ func (a *headAppender) Commit() (err error) {
|
||||||
|
|
||||||
inOrderMint int64 = math.MaxInt64
|
inOrderMint int64 = math.MaxInt64
|
||||||
inOrderMaxt int64 = math.MinInt64
|
inOrderMaxt int64 = math.MinInt64
|
||||||
ooomint int64 = math.MaxInt64
|
oooMinT int64 = math.MaxInt64
|
||||||
ooomaxt int64 = math.MinInt64
|
oooMaxT int64 = math.MinInt64
|
||||||
wblSamples []record.RefSample
|
wblSamples []record.RefSample
|
||||||
oooMmapMarkers map[chunks.HeadSeriesRef][]chunks.ChunkDiskMapperRef
|
oooMmapMarkers map[chunks.HeadSeriesRef][]chunks.ChunkDiskMapperRef
|
||||||
oooMmapMarkersCount int
|
oooMmapMarkersCount int
|
||||||
|
@ -960,11 +960,11 @@ func (a *headAppender) Commit() (err error) {
|
||||||
}
|
}
|
||||||
if ok {
|
if ok {
|
||||||
wblSamples = append(wblSamples, s)
|
wblSamples = append(wblSamples, s)
|
||||||
if s.T < ooomint {
|
if s.T < oooMinT {
|
||||||
ooomint = s.T
|
oooMinT = s.T
|
||||||
}
|
}
|
||||||
if s.T > ooomaxt {
|
if s.T > oooMaxT {
|
||||||
ooomaxt = s.T
|
oooMaxT = s.T
|
||||||
}
|
}
|
||||||
floatOOOAccepted++
|
floatOOOAccepted++
|
||||||
} else {
|
} else {
|
||||||
|
@ -1064,7 +1064,7 @@ func (a *headAppender) Commit() (err error) {
|
||||||
a.head.metrics.samplesAppended.WithLabelValues(sampleMetricTypeHistogram).Add(float64(histogramsAppended))
|
a.head.metrics.samplesAppended.WithLabelValues(sampleMetricTypeHistogram).Add(float64(histogramsAppended))
|
||||||
a.head.metrics.outOfOrderSamplesAppended.WithLabelValues(sampleMetricTypeFloat).Add(float64(floatOOOAccepted))
|
a.head.metrics.outOfOrderSamplesAppended.WithLabelValues(sampleMetricTypeFloat).Add(float64(floatOOOAccepted))
|
||||||
a.head.updateMinMaxTime(inOrderMint, inOrderMaxt)
|
a.head.updateMinMaxTime(inOrderMint, inOrderMaxt)
|
||||||
a.head.updateMinOOOMaxOOOTime(ooomint, ooomaxt)
|
a.head.updateMinOOOMaxOOOTime(oooMinT, oooMaxT)
|
||||||
|
|
||||||
collectOOORecords()
|
collectOOORecords()
|
||||||
if a.head.wbl != nil {
|
if a.head.wbl != nil {
|
||||||
|
|
Loading…
Reference in a new issue