mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Fix partitions may be not recovered with double load partitions (#23061)
Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
parent
846de72fb3
commit
dc6d4b913a
@ -101,11 +101,8 @@ func (m *CollectionManager) Recover(broker Broker) error {
|
||||
for _, partition := range partitions {
|
||||
// Partitions not loaded done should be deprecated
|
||||
if partition.GetStatus() != querypb.LoadStatus_Loaded {
|
||||
partitionIDs := lo.Map(partitions, func(partition *querypb.PartitionLoadInfo, _ int) int64 {
|
||||
return partition.GetPartitionID()
|
||||
})
|
||||
m.store.ReleasePartition(collection, partitionIDs...)
|
||||
break
|
||||
m.store.ReleasePartition(collection, partition.GetPartitionID())
|
||||
continue
|
||||
}
|
||||
m.partitions[partition.PartitionID] = &Partition{
|
||||
PartitionLoadInfo: partition,
|
||||
|
Loading…
Reference in New Issue
Block a user