mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +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 {
|
if so.minTimestamp > th.maxTimestamp || so.maxTimestamp < th.minTimestamp {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
scheduleBlockSearch(bh)
|
if !scheduleBlockSearch(bh) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if len(bhs) == 0 {
|
if len(bhs) == 0 {
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue