mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 00:03:29 +03:00
XL: Ignore errDiskNotFound in certain situations (#1610)
When a disk is removed while an operation is going on (eg. single/multipart put object, list/multipart list objects etc), its required to ignore errDiskNotFound error and continue the operation. Fixes #1552
This commit is contained in:
+2
-2
@@ -243,8 +243,8 @@ func (xl XL) DeleteVol(volume string) error {
|
||||
log.WithFields(logrus.Fields{
|
||||
"volume": volume,
|
||||
}).Errorf("DeleteVol failed with %s", err)
|
||||
// We ignore error if errVolumeNotFound.
|
||||
if err == errVolumeNotFound {
|
||||
// We ignore error if errVolumeNotFound or errDiskNotFound
|
||||
if err == errVolumeNotFound || err == errDiskNotFound {
|
||||
volumeNotFoundErrCnt++
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user