mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
parent
f7834767c1
commit
77033dbfb6
1 changed files with 2 additions and 2 deletions
|
@ -382,7 +382,7 @@ func (p *part) searchByTenantIDs(so *searchOptions, bhss *blockHeaders, workCh c
|
|||
n = sort.Search(len(ibhs), func(i int) bool {
|
||||
return !ibhs[i].streamID.tenantID.less(tenantID)
|
||||
})
|
||||
if n == len(ibhs) || n > 0 && ibhs[n].streamID.tenantID.equal(tenantID) {
|
||||
if n == len(ibhs) || n > 0 && !ibhs[n].streamID.tenantID.equal(tenantID) {
|
||||
// The end of ibhs[n-1] may contain blocks for the given tenantID, so move it backwards
|
||||
n--
|
||||
}
|
||||
|
@ -493,7 +493,7 @@ func (p *part) searchByStreamIDs(so *searchOptions, bhss *blockHeaders, workCh c
|
|||
n = sort.Search(len(ibhs), func(i int) bool {
|
||||
return !ibhs[i].streamID.less(streamID)
|
||||
})
|
||||
if n == len(ibhs) || n > 0 && ibhs[n].streamID.equal(streamID) {
|
||||
if n == len(ibhs) || n > 0 && !ibhs[n].streamID.equal(streamID) {
|
||||
// The end of ibhs[n-1] may contain blocks for the given streamID, so move it backwards
|
||||
n--
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue