heal: Use healDeleteDangling global const in self healing (#11579)

A small fix, use healDeleteDangling constant instead of 'true' in the
self-healing code.
This commit is contained in:
Anis Elleuch
2021-02-19 00:16:20 +01:00
committed by GitHub
parent 90abea5b7a
commit f28b063091
2 changed files with 2 additions and 2 deletions

View File

@@ -637,7 +637,7 @@ func (f *folderScanner) scanQueuedLevels(ctx context.Context, folders []cachedFo
objAPI.HealObjects(ctx, bucket, prefix, madmin.HealOpts{
Recursive: true,
Remove: true,
Remove: healDeleteDangling,
},
func(bucket, object, versionID string) error {
// Wait for each heal as per scanner frequency.