Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIXED] Data race accessing mirror tr #4512

Merged
merged 1 commit into from Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions server/stream.go
Expand Up @@ -2273,9 +2273,6 @@ func (mset *stream) processInboundMirrorMsg(m *inMsg) bool {
}
}

js, stype := mset.js, mset.cfg.Storage
mset.mu.Unlock()

// Do the subject transform if there's one
if mset.mirror.tr != nil {
m.subj = mset.mirror.tr.TransformSubject(m.subj)
Expand All @@ -2293,7 +2290,9 @@ func (mset *stream) processInboundMirrorMsg(m *inMsg) bool {
}
}

s := mset.srv
s, js, stype := mset.srv, mset.js, mset.cfg.Storage
mset.mu.Unlock()

var err error
if node != nil {
if js.limitsExceeded(stype) {
Expand Down