Add comment for collection replica (#8147)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/8242/head
bigsheeper 2021-09-18 18:15:51 +08:00 committed by GitHub
parent 55cf1088f1
commit 11c65dc2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ type ReplicaInterface interface {
printReplica()
}
// collectionReplica is the data replication of memory data in query node.
// It implements `ReplicaInterface` interface.
type collectionReplica struct {
mu sync.RWMutex // guards all
collections map[UniqueID]*Collection