heal: Avoid disabling scanner healing in single and dist erasure mode (#21302)
A typo disabled the scanner healing in erasure mode. Fix it.
This commit is contained in:
@@ -332,7 +332,7 @@ func scanDataFolder(ctx context.Context, disks []StorageAPI, drive *xlStorage, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
var skipHeal atomic.Bool
|
var skipHeal atomic.Bool
|
||||||
if globalIsErasure || cache.Info.SkipHealing {
|
if !globalIsErasure || cache.Info.SkipHealing {
|
||||||
skipHeal.Store(true)
|
skipHeal.Store(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user