mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix fastpath check for ooo native histogram enabled
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
d2f78fb3d5
commit
48d3a5cbfc
|
@ -628,7 +628,7 @@ func (a *headAppender) AppendHistogram(ref storage.SeriesRef, lset labels.Labels
|
|||
return 0, storage.ErrOutOfBounds
|
||||
}
|
||||
// Also fail fast if OOO is enabled, but OOO native histogram ingestion is disabled.
|
||||
if a.oooTimeWindow > 0 && t < a.minValidTime && !a.head.opts.EnableOOONativeHistograms.Load() {
|
||||
if a.oooTimeWindow > 0 && t < a.minValidTime && t >= a.headMaxt-a.oooTimeWindow && !a.head.opts.EnableOOONativeHistograms.Load() {
|
||||
return 0, storage.ErrOOONativeHistogramsDisabled
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue