mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Release last version after expiration (#20137)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com> Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
729e9d48fe
commit
1e590d787f
@ -117,6 +117,8 @@ func (v *ShardClusterVersion) checkSafeGC() {
|
||||
if v.lastVersion != nil {
|
||||
<-v.lastVersion.Expire()
|
||||
}
|
||||
// release the reference of last version, so it could be processed by gc
|
||||
v.lastVersion = nil
|
||||
close(v.ch)
|
||||
}()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user