mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix for data race in accessing rg.node
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -3642,8 +3642,13 @@ func (js *jetStream) processClusterCreateStream(acc *Account, sa *streamAssignme
|
||||
return
|
||||
}
|
||||
|
||||
// Re-capture node.
|
||||
js.mu.RLock()
|
||||
node := rg.node
|
||||
js.mu.RUnlock()
|
||||
|
||||
// Start our monitoring routine.
|
||||
if rg.node != nil {
|
||||
if node != nil {
|
||||
if !alreadyRunning {
|
||||
if mset != nil {
|
||||
mset.monitorWg.Add(1)
|
||||
|
||||
Reference in New Issue
Block a user