Merge branch 'jraft_naming' of https://github.com/chuntaojun/nacos into jraft_naming

This commit is contained in:
chuntaojun 2020-10-15 23:52:00 +08:00
commit fbeab52dfd

View File

@ -231,10 +231,6 @@ public class PersistentServiceProcessor extends LogProcessor4CP implements Persi
final ValueChangeEvent event = ValueChangeEvent.builder().key(key).value(value)
.action(Op.Delete.equals(op) ? DataOperation.DELETE : DataOperation.CHANGE).build();
NotifyCenter.publishEvent(event);
// remove listeners of key to avoid mem leak
if (Op.Delete.equals(op)) {
notifier.deregisterAllListener(key);
}
}
}