mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 00:03:29 +03:00
Set disk to nil after write which needs quorum (#3795)
Ignore a disk which wasn't able to successfully perform an action to avoid eventual perturbations when the disk comes back in the middle of write change.
This commit is contained in:
committed by
Harshavardhana
parent
461b2bbd37
commit
dce0345f8f
@@ -254,6 +254,8 @@ func commitXLMetadata(disks []StorageAPI, srcBucket, srcPrefix, dstBucket, dstPr
|
||||
rErr := disk.RenameFile(srcBucket, srcJSONFile, dstBucket, dstJSONFile)
|
||||
if rErr != nil {
|
||||
mErrs[index] = traceError(rErr)
|
||||
// Ignore disk which returned an error.
|
||||
disks[index] = nil
|
||||
return
|
||||
}
|
||||
mErrs[index] = nil
|
||||
|
||||
Reference in New Issue
Block a user