mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add comment for getPartitionByID (#9892)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
d59bb7dd29
commit
c92706c75d
@ -309,6 +309,7 @@ func (colReplica *collectionReplica) removePartitionPrivate(partitionID UniqueID
|
||||
return nil
|
||||
}
|
||||
|
||||
// getPartitionByID returns the partition which id is partitionID
|
||||
func (colReplica *collectionReplica) getPartitionByID(partitionID UniqueID) (*Partition, error) {
|
||||
colReplica.mu.RLock()
|
||||
defer colReplica.mu.RUnlock()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user