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