[skip ci] Add comment for queryRLock (#11455)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-11-08 21:03:45 +08:00 committed by GitHub
parent a8d8490104
commit 40d199bac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,7 @@ func (colReplica *collectionReplica) queryUnlock() {
colReplica.queryMu.Unlock()
}
// queryRLock guards query and delete segment operations
func (colReplica *collectionReplica) queryRLock() {
colReplica.queryMu.RLock()
}