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
2021-04-07 19:39:48 +02:00
committed by GitHub
parent d2ac2f758e
commit d267d152ba
2 changed files with 10 additions and 10 deletions

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"`
}