mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
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:
parent
3cb3cb7918
commit
35ebd17fe4
@ -1081,7 +1081,5 @@ func (sc *ShardCluster) GetSegmentInfos() []shardSegmentInfo {
|
||||
}
|
||||
|
||||
func (sc *ShardCluster) getVersion() int64 {
|
||||
sc.mutVersion.RLock()
|
||||
defer sc.mutVersion.RUnlock()
|
||||
return sc.version
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user