[skip ci] Add comment for getSegmentByID (#10291)

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

View File

@ -455,6 +455,7 @@ func (colReplica *collectionReplica) removeSegmentPrivate(segmentID UniqueID) er
return nil
}
// getSegmentByID returns the segment which id is segmentID
func (colReplica *collectionReplica) getSegmentByID(segmentID UniqueID) (*Segment, error) {
colReplica.mu.RLock()
defer colReplica.mu.RUnlock()