[skip e2e] Add comment for setIndexInfo (#14881)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/14889/head
bigsheeper 2022-01-05 20:59:30 +08:00 committed by GitHub
parent c94c9d3a6e
commit 8b9ce5780d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ func (loader *indexLoader) getIndexInfo(collectionID UniqueID, segment *Segment)
}, nil }, nil
} }
// setIndexInfo sets indexInfo for segment
func (loader *indexLoader) setIndexInfo(segment *Segment, info *indexInfo) { func (loader *indexLoader) setIndexInfo(segment *Segment, info *indexInfo) {
segment.setEnableIndex(true) segment.setEnableIndex(true)
segment.setIndexInfo(info.fieldID, info) segment.setIndexInfo(info.fieldID, info)