From b028e58c8f394dd509f25f0eed1d64e24bff0584 Mon Sep 17 00:00:00 2001 From: bigsheeper Date: Thu, 4 Nov 2021 18:59:29 +0800 Subject: [PATCH] [skip ci] Add comment for hasSegment (#11251) 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 2e14be1277..3c5711c9e7 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -87,6 +87,7 @@ type ReplicaInterface interface { removeSegment(segmentID UniqueID) error // getSegmentByID returns the segment which id is segmentID getSegmentByID(segmentID UniqueID) (*Segment, error) + // hasSegment returns true if collectionReplica has the segment, false otherwise hasSegment(segmentID UniqueID) bool getSegmentNum() int getSegmentStatistics() []*internalpb.SegmentStats