mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix for datarace accessing mirror tr
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -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)
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user