mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
XL: Handle object layer initialization properly.
Initialization when disk was down the network disk reported an incorrect error rather than errDiskNotFound. This resulted in incorrect error handling during prepInitStorage() stage. Fixes #2577
This commit is contained in:
@@ -183,7 +183,7 @@ func xlHouseKeeping(storageDisks []StorageAPI) error {
|
||||
|
||||
// Cleanup all temp entries upon start.
|
||||
err := cleanupDir(disk, minioMetaBucket, tmpMetaPrefix)
|
||||
if err != nil {
|
||||
if err != nil && err != errDiskNotFound {
|
||||
errs[index] = err
|
||||
}
|
||||
}(index, disk)
|
||||
|
||||
Reference in New Issue
Block a user