[skip ci] Add comment for queryLock (#11376)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-11-06 19:57:10 +08:00 committed by GitHub
parent dc1dc199a2
commit b51fc9efa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ type collectionReplica struct {
etcdKV *etcdkv.EtcdKV
}
// queryLock guards query and delete operations
func (colReplica *collectionReplica) queryLock() {
colReplica.queryMu.Lock()
}