Use async healing in PutObject call (#16431)

This commit is contained in:
Anis Elleuch
2023-01-19 09:54:22 +01:00
committed by GitHub
parent 71c95ad0d0
commit d98116559b
2 changed files with 8 additions and 4 deletions

View File

@@ -437,7 +437,8 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []string,
return retErr
}
// healObject heals given object path in deep to fix bitrot.
// healObject sends the given object/version to the background healing workers
// and only returns when healing of the object is done.
func healObject(bucket, object, versionID string, scan madmin.HealScanMode) {
// Get background heal sequence to send elements to heal
globalHealStateLK.Lock()