[skip ci] Add comment for hasPartition (#11022)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-11-01 22:41:59 +08:00 committed by GitHub
parent b369061ab3
commit 5eb0b67fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)