mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
heal: Do not override heal scan mode mode if it is set (#14476)
mc admin heal has --scan=deep flag which enforces bitrot checking when doing the healing. Do not force override an existing heal scan option.
This commit is contained in:
@@ -700,8 +700,9 @@ func (h *healSequence) queueHealTask(source healSource, healType madmin.HealItem
|
|||||||
}
|
}
|
||||||
if source.opts != nil {
|
if source.opts != nil {
|
||||||
task.opts = *source.opts
|
task.opts = *source.opts
|
||||||
|
} else {
|
||||||
|
task.opts.ScanMode = globalHealConfig.ScanMode()
|
||||||
}
|
}
|
||||||
task.opts.ScanMode = globalHealConfig.ScanMode()
|
|
||||||
|
|
||||||
h.mutex.Lock()
|
h.mutex.Lock()
|
||||||
h.scannedItemsMap[healType]++
|
h.scannedItemsMap[healType]++
|
||||||
|
|||||||
Reference in New Issue
Block a user