fix migration state (#520)
This commit is contained in:
@@ -571,6 +571,8 @@ func (p *ParticipantImpl) SetMigrateState(s types.MigrateState) {
|
|||||||
}
|
}
|
||||||
pendingOffer = p.pendingOffer
|
pendingOffer = p.pendingOffer
|
||||||
p.pendingOffer = nil
|
p.pendingOffer = nil
|
||||||
|
// in case of migration, subscriber data channel will not fire OnOpen callback
|
||||||
|
p.activeCounter.CAS(0, 2)
|
||||||
}
|
}
|
||||||
p.lock.Unlock()
|
p.lock.Unlock()
|
||||||
if s == types.MigrateStateComplete {
|
if s == types.MigrateStateComplete {
|
||||||
|
|||||||
Reference in New Issue
Block a user