[skip ci] Add comment for newCollectionReplica (#10573)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/10601/head
bigsheeper 2021-10-25 19:36:12 +08:00 committed by GitHub
parent 41493a4852
commit 75f1c2f230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ func (colReplica *collectionReplica) freeAll() {
colReplica.segments = make(map[UniqueID]*Segment)
}
// newCollectionReplica returns a new ReplicaInterface
func newCollectionReplica(etcdKv *etcdkv.EtcdKV) ReplicaInterface {
collections := make(map[UniqueID]*Collection)
partitions := make(map[UniqueID]*Partition)