mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comment for getPartitionByID (#9892)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/9896/head
parent
d59bb7dd29
commit
c92706c75d
|
@ -309,6 +309,7 @@ func (colReplica *collectionReplica) removePartitionPrivate(partitionID UniqueID
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getPartitionByID returns the partition which id is partitionID
|
||||||
func (colReplica *collectionReplica) getPartitionByID(partitionID UniqueID) (*Partition, error) {
|
func (colReplica *collectionReplica) getPartitionByID(partitionID UniqueID) (*Partition, error) {
|
||||||
colReplica.mu.RLock()
|
colReplica.mu.RLock()
|
||||||
defer colReplica.mu.RUnlock()
|
defer colReplica.mu.RUnlock()
|
||||||
|
|
Loading…
Reference in New Issue