Use async healing in PutObject call (#16431)

This commit is contained in:
Anis Elleuch authored and GitHub committed 2023-01-19 00:54:22 -08:00
1 parent 71c95ad0d0
commit d98116559b
2 files changed
+8 -4

No files matched your search

+2 -1
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()