fix: Check nodeID wildcard when removing pkOracle (#33895)

See also #33894

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/33783/head
congqixia 2024-06-18 14:11:58 +08:00 committed by GitHub
parent 8cdc0e6233
commit ec64499536
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ func WithSegmentType(typ commonpb.SegmentState) CandidateFilter {
// WithWorkerID returns CandidateFilter with provided worker id.
func WithWorkerID(workerID int64) CandidateFilter {
return func(candidate candidateWithWorker) bool {
return candidate.workerID == workerID
return candidate.workerID == workerID ||
workerID == -1 // wildcard for offline node
}
}