Use the same lock for the scanner and site replication healing (#15985)

This commit is contained in:
Anis Elleuch
2022-11-08 17:55:55 +01:00
committed by GitHub
parent 52769e1e71
commit 3b1a9b9fdf
5 changed files with 97 additions and 34 deletions

View File

@@ -581,6 +581,8 @@ func serverMain(ctx *cli.Context) {
xhttp.SetDeploymentID(globalDeploymentID)
xhttp.SetMinIOVersion(Version)
globalLeaderLock = newSharedLock(GlobalContext, newObject, "leader.lock")
// Enable background operations for erasure coding
initAutoHeal(GlobalContext, newObject)
initHealMRF(GlobalContext, newObject)