mirror of https://github.com/milvus-io/milvus.git
fix: unstable ut in leader_vew_manager.go file (#39161)
issue: #38672 Signed-off-by: jaime <yun.zhang@zilliz.com>pull/39234/head
parent
6d45dd5666
commit
e8f76cd2d9
|
@ -331,8 +331,8 @@ func (mgr *LeaderViewManager) GetLeaderView(collectionID int64) []*metricsinfo.L
|
|||
if lv, ok := nodeViews.collectionViews[collectionID]; ok {
|
||||
filteredViews = lv
|
||||
} else {
|
||||
// if collectionID is not found, return empty leader views
|
||||
return leaderViews
|
||||
// skip if collectionID is not found
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
// if collectionID is not set, return all leader views
|
||||
|
|
Loading…
Reference in New Issue