diff --git a/internal/querynode/collection_replica.go b/internal/querynode/collection_replica.go index f295342140..a953dabbd0 100644 --- a/internal/querynode/collection_replica.go +++ b/internal/querynode/collection_replica.go @@ -69,6 +69,7 @@ type ReplicaInterface interface { removePartition(partitionID UniqueID) error // getPartitionByID returns the partition which id is partitionID getPartitionByID(partitionID UniqueID) (*Partition, error) + // hasPartition returns true if collectionReplica has the partition, false otherwise hasPartition(partitionID UniqueID) bool getPartitionNum() int getSegmentIDs(partitionID UniqueID) ([]UniqueID, error)