mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
fixes tmpBlockFile remove on prometheus search error (#109)
This commit is contained in:
parent
d72fc60108
commit
4cf7a55808
1 changed files with 1 additions and 0 deletions
|
@ -1005,6 +1005,7 @@ func ProcessSearchQuery(sq *storage.SearchQuery, fetchData bool, deadline search
|
|||
pd.timestamps = append(pd.timestamps, timestamps...)
|
||||
})
|
||||
if err != nil {
|
||||
putTmpBlocksFile(tbf)
|
||||
putStorageSearch(sr)
|
||||
return nil, fmt.Errorf("error when searching in Prometheus data: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue