healing: re-read metadata after lock (#12004)

Do no use potentially wrong metadata from before acquiring lock.

Plus remove unused NoLock option.
This commit is contained in:
Klaus Post authored and GitHub committed 2021-04-07 10:39:48 -07:00
1 parent d2ac2f758e
commit d267d152ba
2 files changed
+10 -10

No files matched your search

-1
View File
@@ -48,7 +48,6 @@ type HealOpts struct {
DryRun bool `json:"dryRun"`
Remove bool `json:"remove"`
Recreate bool `json:"recreate"` // only used when bucket needs to be healed
NoLock bool `json:"-"` // only used internally.
ScanMode HealScanMode `json:"scanMode"`
}