From 31c222b723b602f0732f33cda43f8a42274096b9 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Wed, 20 Oct 2021 19:05:04 +0800 Subject: [PATCH] [skip ci] Add comment for getSegmentByIDPrivate (#10292) Signed-off-by: bigsheeper --- internal/querynode/collection_replica.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynode/collection_replica.go b/internal/querynode/collection_replica.go index 3d6842464f..59ef8db858 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -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 {