Merge branch 'jraft_naming' of https://github.com/chuntaojun/nacos into jraft_naming
This commit is contained in:
commit
fbeab52dfd
@ -231,10 +231,6 @@ public class PersistentServiceProcessor extends LogProcessor4CP implements Persi
|
|||||||
final ValueChangeEvent event = ValueChangeEvent.builder().key(key).value(value)
|
final ValueChangeEvent event = ValueChangeEvent.builder().key(key).value(value)
|
||||||
.action(Op.Delete.equals(op) ? DataOperation.DELETE : DataOperation.CHANGE).build();
|
.action(Op.Delete.equals(op) ? DataOperation.DELETE : DataOperation.CHANGE).build();
|
||||||
NotifyCenter.publishEvent(event);
|
NotifyCenter.publishEvent(event);
|
||||||
// remove listeners of key to avoid mem leak
|
|
||||||
if (Op.Delete.equals(op)) {
|
|
||||||
notifier.deregisterAllListener(key);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user