[skip ci] Add comment for getSegmentInfosByColID (#12386)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-11-29 19:59:54 +08:00 committed by GitHub
parent 8bd7365172
commit 1e92ac48d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,6 +337,7 @@ func (colReplica *collectionReplica) getFieldsByCollectionIDPrivate(collectionID
return collection.Schema().Fields, nil
}
// getSegmentInfosByColID return segments info by collectionID
func (colReplica *collectionReplica) getSegmentInfosByColID(collectionID UniqueID) ([]*querypb.SegmentInfo, error) {
colReplica.mu.RLock()
defer colReplica.mu.RUnlock()