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