mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for hasPartition (#9979)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/9982/head
parent
3cff929be3
commit
0f1de9757b
|
@ -326,6 +326,7 @@ func (colReplica *collectionReplica) getPartitionByIDPrivate(partitionID UniqueI
|
|||
return partition, nil
|
||||
}
|
||||
|
||||
// hasPartition returns true if collectionReplica has the partition, false otherwise
|
||||
func (colReplica *collectionReplica) hasPartition(partitionID UniqueID) bool {
|
||||
colReplica.mu.RLock()
|
||||
defer colReplica.mu.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue