From 27cd5555e6e6d621ccfd422a85bfe23cecba2502 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin <valyala@gmail.com> Date: Tue, 15 Sep 2020 20:39:34 +0300 Subject: [PATCH] app/vmselect/netstorage: mention that RunParallel or Cancel must be called on the returned results from ProcessSearchQuery --- app/vmselect/netstorage/netstorage.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/vmselect/netstorage/netstorage.go b/app/vmselect/netstorage/netstorage.go index 4b1128cd9a..3cbbfc5d71 100644 --- a/app/vmselect/netstorage/netstorage.go +++ b/app/vmselect/netstorage/netstorage.go @@ -1009,6 +1009,8 @@ func (tbfw *tmpBlocksFileWrapper) WriteBlock(mb *storage.MetricBlock) error { } // ProcessSearchQuery performs sq on storage nodes until the given deadline. +// +// Results.RunParallel or Results.Cancel must be called on the returned Results. func ProcessSearchQuery(at *auth.Token, sq *storage.SearchQuery, fetchData bool, deadline searchutils.Deadline) (*Results, bool, error) { if deadline.Exceeded() { return nil, false, fmt.Errorf("timeout exceeded before starting the query processing: %s", deadline.String())