add unformatted disk as part of the error list (#10128)

these errors should be ignored for quorum
error calculation to ensure that we don't
prematurely return unformatted disk error
as part of API calls
This commit is contained in:
Harshavardhana
2020-07-24 13:16:11 -07:00
committed by GitHub
parent 57ff9abca2
commit 35212b673e
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ import (
)
// list all errors that can be ignore in a bucket operation.
var bucketOpIgnoredErrs = append(baseIgnoredErrs, errDiskAccessDenied)
var bucketOpIgnoredErrs = append(baseIgnoredErrs, errDiskAccessDenied, errUnformattedDisk)
// list all errors that can be ignored in a bucket metadata operation.
var bucketMetadataOpIgnoredErrs = append(bucketOpIgnoredErrs, errVolumeNotFound)