mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
fix: siteResyncMetrics init will make a deadlock when len(siteReplication) >= 3 (#18206)
This commit is contained in:
parent
21ecb941fe
commit
5512016885
@ -118,11 +118,11 @@ func (sm *siteResyncMetrics) load(ctx context.Context, objAPI ObjectLayer) error
|
||||
return err
|
||||
}
|
||||
sm.Lock()
|
||||
defer sm.Unlock()
|
||||
if _, ok := sm.peerResyncMap[peer.DeploymentID]; !ok {
|
||||
sm.peerResyncMap[peer.DeploymentID] = resyncState{resyncID: rs.ResyncID, LastSaved: time.Time{}}
|
||||
sm.resyncStatus[rs.ResyncID] = rs
|
||||
}
|
||||
sm.Unlock()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user