mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
lib/logstorage: proper exit during block search (#5400)
This commit is contained in:
parent
333bda8702
commit
cafd6f08b3
@ -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 New Issue
Block a user