@ -133,19 +133,7 @@ func healBucket(ctx context.Context, storageDisks []StorageAPI, bucket string, w
DiskCount : len ( storageDisks ) ,
DiskCount : len ( storageDisks ) ,
}
}
for i , before := range beforeState {
for i , before := range beforeState {
if storageDisks [ i ] == nil {
if storageDisks [ i ] != nil {
res . Before . Drives = append ( res . Before . Drives , madmin . HealDriveInfo {
UUID : "" ,
Endpoint : "" ,
State : before ,
} )
res . After . Drives = append ( res . After . Drives , madmin . HealDriveInfo {
UUID : "" ,
Endpoint : "" ,
State : afterState [ i ] ,
} )
continue
}
drive := storageDisks [ i ] . String ( )
drive := storageDisks [ i ] . String ( )
res . Before . Drives = append ( res . Before . Drives , madmin . HealDriveInfo {
res . Before . Drives = append ( res . Before . Drives , madmin . HealDriveInfo {
UUID : "" ,
UUID : "" ,
@ -158,6 +146,7 @@ func healBucket(ctx context.Context, storageDisks []StorageAPI, bucket string, w
State : afterState [ i ] ,
State : afterState [ i ] ,
} )
} )
}
}
}
reducedErr := reduceWriteQuorumErrs ( ctx , dErrs , bucketOpIgnoredErrs , writeQuorum )
reducedErr := reduceWriteQuorumErrs ( ctx , dErrs , bucketOpIgnoredErrs , writeQuorum )
if reducedErr == errXLWriteQuorum {
if reducedErr == errXLWriteQuorum {