Unwatch channel in watch buffer (#23548) (#23558)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
hotfix-2.2.6
congqixia 2023-04-20 14:46:31 +08:00 committed by GitHub
parent 04364129fb
commit a078e40ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ func (c *ChannelManager) checkOldNodes(nodes []UniqueID) error {
// unwatchDroppedChannels removes drops channel that are marked to drop.
func (c *ChannelManager) unwatchDroppedChannels() {
nodeChannels := c.store.GetNodesChannels()
nodeChannels := c.store.GetChannels()
for _, nodeChannel := range nodeChannels {
for _, ch := range nodeChannel.Channels {
if !c.h.CheckShouldDropChannel(ch.Name, ch.CollectionID) {