mirror of https://github.com/milvus-io/milvus.git
Fix replicas info is not removed after release (#17111)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/17134/head
parent
e05cfe194e
commit
599763d9bf
|
@ -529,6 +529,8 @@ func (m *MetaReplica) releaseCollection(collectionID UniqueID) error {
|
|||
}
|
||||
m.dmChannelMu.Unlock()
|
||||
|
||||
m.replicas.Remove(collection.ReplicaIds...)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -122,6 +122,7 @@ func TestMetaFunc(t *testing.T) {
|
|||
queryChannelInfos: map[UniqueID]*querypb.QueryChannelInfo{},
|
||||
dmChannelInfos: map[string]*querypb.DmChannelWatchInfo{},
|
||||
segmentsInfo: segmentsInfo,
|
||||
replicas: NewReplicaInfos(),
|
||||
}
|
||||
meta.setKvClient(kv)
|
||||
dmChannels := []string{"testDm1", "testDm2"}
|
||||
|
|
Loading…
Reference in New Issue