[skip ci] Add comment for getSegmentByIDPrivate (#10292)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/10302/head
bigsheeper 2021-10-20 19:05:04 +08:00 committed by GitHub
parent a7429cdd3a
commit 31c222b723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ func (colReplica *collectionReplica) getSegmentByID(segmentID UniqueID) (*Segmen
return colReplica.getSegmentByIDPrivate(segmentID)
}
// getSegmentByIDPrivate is private function in collectionReplica, it returns the segment which id is segmentID
func (colReplica *collectionReplica) getSegmentByIDPrivate(segmentID UniqueID) (*Segment, error) {
segment, ok := colReplica.segments[segmentID]
if !ok {