Skip to content

Commit

Permalink
Fix data rase on mset.cfg
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Anderson <evan@stacklok.com>
  • Loading branch information
evankanderson authored and neilalexander committed Feb 5, 2025
1 parent ffb04c2 commit 0df8678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1501,12 +1501,14 @@ func (a *Account) filteredStreams(filter string) []*stream {
var msets []*stream
for _, mset := range jsa.streams {
if filter != _EMPTY_ {
mset.cfgMu.RLock()
for _, subj := range mset.cfg.Subjects {
if SubjectsCollide(filter, subj) {
msets = append(msets, mset)
break
}
}
mset.cfgMu.RUnlock()
} else {
msets = append(msets, mset)
}
Expand Down

0 comments on commit 0df8678

Please sign in to comment.