discovery: transit all inactive syncers when needed
This commit is contained in:
1 file changed
+7
@@ -398,6 +398,13 @@ func (m *SyncManager) syncerHandler() {
|
||||
continue
|
||||
}
|
||||
|
||||
// We may not even have enough inactive syncers to be
|
||||
// transitted. In that case, we will transit all the
|
||||
// inactive syncers.
|
||||
if len(m.inactiveSyncers) < numActiveLeft {
|
||||
numActiveLeft = len(m.inactiveSyncers)
|
||||
}
|
||||
|
||||
log.Debugf("Attempting to transition %v passive "+
|
||||
"GossipSyncers to active", numActiveLeft)
|
||||
|
||||
|
||||
Reference in new issue
Block a user