fix: unstable ut in leader_vew_manager.go file (#39161)

issue: #38672

Signed-off-by: jaime <yun.zhang@zilliz.com>
pull/39234/head
jaime 2025-01-15 12:26:59 +08:00 committed by GitHub
parent 6d45dd5666
commit e8f76cd2d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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