app/vlselect/logsql: add missing return from ProcessLiveTailRequest() when the query cannot be live tailed

(cherry picked from commit fe022ed795)
This commit is contained in:
Aliaksandr Valialkin 2024-10-09 16:30:10 +02:00 committed by hagen1778
parent 0fe533e0be
commit 42eefebb06
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640

View File

@ -394,7 +394,9 @@ func ProcessLiveTailRequest(ctx context.Context, w http.ResponseWriter, r *http.
return return
} }
if !q.CanLiveTail() { if !q.CanLiveTail() {
httpserver.Errorf(w, r, "the query [%s] cannot be used in live tailing; see https://docs.victoriametrics.com/victorialogs/querying/#live-tailing for details", q) httpserver.Errorf(w, r, "the query [%s] cannot be used in live tailing; "+
"see https://docs.victoriametrics.com/victorialogs/querying/#live-tailing for details", q)
return
} }
q.Optimize() q.Optimize()