mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for getSegmentByIDPrivate (#10292)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/10302/head
parent
a7429cdd3a
commit
31c222b723
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue