mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Cherry-pick from master pr: #33895 See also #33894 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
9157980232
commit
ce7bceece9
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user