mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add comment for getSegmentByID (#10291)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user