mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/logstorage: proper exit during block search (#5400)
This commit is contained in:
parent
9c75e3ee15
commit
60a8e59366
1 changed files with 3 additions and 1 deletions
|
@ -409,7 +409,9 @@ func (p *part) searchByTenantIDs(so *searchOptions, bhss *blockHeaders, workCh c
|
|||
if so.minTimestamp > th.maxTimestamp || so.maxTimestamp < th.minTimestamp {
|
||||
continue
|
||||
}
|
||||
scheduleBlockSearch(bh)
|
||||
if !scheduleBlockSearch(bh) {
|
||||
return
|
||||
}
|
||||
}
|
||||
if len(bhs) == 0 {
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue