mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
The insert notification was done based on the creation of a node during an insert, which was wrong since the node may have already existed and still the subscription could be all new. For instance, suppose that there is a subscription on "foo.bar". We register an notification interest for "foo", which does not notify, which is normal. Then we create a subscription on "foo". During the insert, "foo" node already exists so notification would not be sent, but it should. Fixed also removed by having removeFromNode() returning a boolean to indicate if the subscription was the last in that node. However, it seems that we again check for interest in chkForRemoveNotification(), so not sure if that is required. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
34 KiB
34 KiB