mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
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.
This commit is contained in:
@@ -59,9 +59,7 @@ func (er erasureObjects) getLoadBalancedLocalDisks() (newDisks []StorageAPI) {
|
|||||||
// Based on the random shuffling return back randomized disks.
|
// Based on the random shuffling return back randomized disks.
|
||||||
for _, i := range hashOrder(UTCNow().String(), len(disks)) {
|
for _, i := range hashOrder(UTCNow().String(), len(disks)) {
|
||||||
if disks[i-1] != nil && disks[i-1].IsLocal() {
|
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
|
return newDisks
|
||||||
|
|||||||
Reference in New Issue
Block a user