mirror of https://github.com/milvus-io/milvus.git
Remove vChannel for collection in historical (#12359)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/12402/head
parent
485851597f
commit
65608836e6
|
@ -130,6 +130,10 @@ func (c *Collection) removeVChannel(channel Channel) {
|
|||
}
|
||||
}
|
||||
c.vChannels = tmpChannels
|
||||
log.Debug("remove vChannel from collection",
|
||||
zap.Any("collectionID", c.ID()),
|
||||
zap.Any("channel", channel),
|
||||
)
|
||||
}
|
||||
|
||||
// addPChannels add physical channels to physical channels of collection
|
||||
|
@ -237,6 +241,10 @@ func (c *Collection) removeVDeltaChannel(channel Channel) {
|
|||
}
|
||||
}
|
||||
c.vDeltaChannels = tmpChannels
|
||||
log.Debug("remove vDeltaChannel from collection",
|
||||
zap.Any("collectionID", c.ID()),
|
||||
zap.Any("channel", channel),
|
||||
)
|
||||
}
|
||||
|
||||
// setReleaseTime records when collection is released
|
||||
|
|
|
@ -833,6 +833,7 @@ func (r *releasePartitionsTask) Execute(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
sCol.removeVChannel(channel)
|
||||
hCol.removeVChannel(channel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -887,6 +888,7 @@ func (r *releasePartitionsTask) Execute(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
sCol.removeVDeltaChannel(channel)
|
||||
hCol.removeVDeltaChannel(channel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue