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

This commit is contained in:
Aliaksandr Valialkin 2024-10-09 16:30:10 +02:00
parent baa87b5b36
commit fe022ed795
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

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()