Details
Description
The execution can panic because the replicatorReplicator instance might be dereferenced in p2pMgr.ReplicationSpecChangeCallback (https://github.com/couchbase/goxdcr/blob/7.1.x/peerToPeer/peerToPeerManager.go#L584) before it was initialized (https://github.com/couchbase/goxdcr/blob/7.1.x/peerToPeer/peerToPeerManager.go#L627)
Attachments
Issue Links
For Gerrit Dashboard: MB-59512 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
200306,1 | MB-59512: Avoid dereferencing replicaReplicator instance before initialization | master | goxdcr | Status: ABANDONED | 0 | 0 |
200315,2 | MB-59512: Avoid dereferencing replicaReplicator instance before initialization | master | goxdcr | Status: MERGED | +2 | +1 |