Remove not needed RLock for getVersion (#20596)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2022-11-15 15:35:08 +08:00 committed by GitHub
parent 3cb3cb7918
commit 35ebd17fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1081,7 +1081,5 @@ func (sc *ShardCluster) GetSegmentInfos() []shardSegmentInfo {
}
func (sc *ShardCluster) getVersion() int64 {
sc.mutVersion.RLock()
defer sc.mutVersion.RUnlock()
return sc.version
}