From 3f2455d03f8a6829c815cf38dc91ba2df7f6760e Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Thu, 4 Nov 2021 18:56:42 +0800 Subject: [PATCH] [skip ci] Add comment for getSegmentByID (#11250) 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 cb542d78de..2e14be1277 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -85,6 +85,7 @@ type ReplicaInterface interface { setSegment(segment *Segment) error // removeSegment removes a segment from collectionReplica removeSegment(segmentID UniqueID) error + // getSegmentByID returns the segment which id is segmentID getSegmentByID(segmentID UniqueID) (*Segment, error) hasSegment(segmentID UniqueID) bool getSegmentNum() int