[skip ci] Add comment for addPartition (#9807)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9820/head
bigsheeper 2021-10-13 19:12:39 +08:00 committed by GitHub
parent 71a6c5a7e6
commit 1a72d05a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -258,6 +258,7 @@ func (colReplica *collectionReplica) getFieldsByCollectionIDPrivate(collectionID
}
//----------------------------------------------------------------------------------------------------- partition
// addPartition adds a new partition to collection
func (colReplica *collectionReplica) addPartition(collectionID UniqueID, partitionID UniqueID) error {
colReplica.mu.Lock()
defer colReplica.mu.Unlock()