mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
re-attach offline drive after new drive replacement (#10416)
inconsistent drive healing when one of the drive is offline while a new drive was replaced, this change is to ensure that we can add the offline drive back into the mix by healing it again.
This commit is contained in:
@@ -73,11 +73,14 @@ func getLocalBackgroundHealStatus() (madmin.BgHealState, bool) {
|
||||
return madmin.BgHealState{}, false
|
||||
}
|
||||
|
||||
objAPI := newObjectLayerWithoutSafeModeFn()
|
||||
if objAPI == nil {
|
||||
return madmin.BgHealState{}, false
|
||||
}
|
||||
|
||||
var healDisks []string
|
||||
for _, eps := range globalBackgroundHealState.getHealLocalDisks() {
|
||||
for _, ep := range eps {
|
||||
healDisks = append(healDisks, ep.String())
|
||||
}
|
||||
for _, ep := range getLocalDisksToHeal() {
|
||||
healDisks = append(healDisks, ep.String())
|
||||
}
|
||||
|
||||
return madmin.BgHealState{
|
||||
|
||||
Reference in New Issue
Block a user