From 2e6f8bdf197a5c8e3670cc92f9504942d7bf82d3 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 23 Feb 2022 14:30:46 -0800 Subject: [PATCH] do not skip healing disks during deletes (#14394) healing disks take active I/O it is possible that deleted objects might stay in .trash folder for a really long time until the drive is fully healed. this PR changes it such that we are making sure we purge the active content written to these disks as well. --- cmd/erasure-common.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/erasure-common.go b/cmd/erasure-common.go index 9cfbb9808..990736dd9 100644 --- a/cmd/erasure-common.go +++ b/cmd/erasure-common.go @@ -59,9 +59,7 @@ func (er erasureObjects) getLoadBalancedLocalDisks() (newDisks []StorageAPI) { // Based on the random shuffling return back randomized disks. for _, i := range hashOrder(UTCNow().String(), len(disks)) { if disks[i-1] != nil && disks[i-1].IsLocal() { - if disks[i-1].Healing() == nil && disks[i-1].IsOnline() { - newDisks = append(newDisks, disks[i-1]) - } + newDisks = append(newDisks, disks[i-1]) } } return newDisks