mirror of https://github.com/milvus-io/milvus.git
fix: Check nodeID wildcard when removing pkOracle (#33895)
See also #33894 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/33783/head
parent
8cdc0e6233
commit
ec64499536
|
@ -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…
Reference in New Issue