fix: Fix bug for get segment index state (#31429)

issue: #31361 
master pr: #31427 
2.4 pr: #31428

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/31450/head
cai.zhang 2024-03-20 15:05:06 +08:00 committed by GitHub
parent 86e347a1a4
commit 52a7eb9548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ func (m *indexMeta) getSegmentsIndexStates(collectionID UniqueID, segmentIDs []U
ret[segID] = make(map[int64]*indexpb.SegmentIndexState)
segIndexInfos, ok := m.segmentIndexes[segID]
if !ok || len(segIndexInfos) == 0 {
return ret
continue
}
for _, segIdx := range segIndexInfos {