mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for collectionReplica (#9980)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/9981/head
parent
0f1de9757b
commit
14b77405f4
|
@ -333,6 +333,7 @@ func (colReplica *collectionReplica) hasPartition(partitionID UniqueID) bool {
|
|||
return colReplica.hasPartitionPrivate(partitionID)
|
||||
}
|
||||
|
||||
// hasPartitionPrivate is the private function in collectionReplica, to check if collectionReplica has the partition
|
||||
func (colReplica *collectionReplica) hasPartitionPrivate(partitionID UniqueID) bool {
|
||||
_, ok := colReplica.partitions[partitionID]
|
||||
return ok
|
||||
|
|
Loading…
Reference in New Issue