mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for getSegmentByID (#10291)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/10298/head
parent
525a85ef06
commit
ff4cd4925f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue