app/vmselect/prometheus: do not adjust start and end args in /api/v1/query_range if nocache=1 arg is set

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/171
This commit is contained in:
Aliaksandr Valialkin 2019-09-04 13:09:20 +03:00
parent 82bfe818d0
commit a7d5d611fe

View File

@ -634,7 +634,9 @@ func QueryRangeHandler(at *auth.Token, w http.ResponseWriter, r *http.Request) e
if err := promql.ValidateMaxPointsPerTimeseries(start, end, step); err != nil {
return err
}
if mayCache {
start, end = promql.AdjustStartEnd(start, end, step)
}
ec := promql.EvalConfig{
AuthToken: at,