fix daisy chained leaf node subject propagation issue. (#2468)

fixes #2448 

initLeafNodeSmapAndSendSubs did not pick up enough local subscriptions.

Signed-off-by: Matthias Hanel <mh@synadia.com>
This commit is contained in:
Matthias Hanel
2021-08-25 18:10:09 -04:00
committed by GitHub
parent 295280c676
commit 41a253dabb
6 changed files with 96 additions and 21 deletions

View File

@@ -1481,7 +1481,7 @@ func (s *Server) initLeafNodeSmapAndSendSubs(c *client) {
// If we are solicited we only send interest for local clients.
if c.isSpokeLeafNode() {
acc.sl.localSubs(&subs)
acc.sl.localSubs(&subs, true)
} else {
acc.sl.All(&subs)
}