mirror of
https://github.com/minio/minio.git
synced 2025-04-22 19:35:47 -04:00
parent
10a010c1ad
commit
9eb56f0676
@ -90,9 +90,8 @@ func (xl XL) healFile(volume string, path string) error {
|
|||||||
"volume": volume,
|
"volume": volume,
|
||||||
"path": path,
|
"path": path,
|
||||||
}).Errorf("CreateFile failed with error %s", err)
|
}).Errorf("CreateFile failed with error %s", err)
|
||||||
// Unexpected error
|
safeCloseAndRemove(writers[index])
|
||||||
closeAndRemoveWriters(writers...)
|
continue
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var totalLeft = metadata.Stat.Size
|
var totalLeft = metadata.Stat.Size
|
||||||
@ -191,8 +190,8 @@ func (xl XL) healFile(volume string, path string) error {
|
|||||||
"volume": volume,
|
"volume": volume,
|
||||||
"path": path,
|
"path": path,
|
||||||
}).Errorf("Write failed with %s", err)
|
}).Errorf("Write failed with %s", err)
|
||||||
closeAndRemoveWriters(writers...)
|
safeCloseAndRemove(writers[index])
|
||||||
return err
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
totalLeft = totalLeft - metadata.Erasure.BlockSize
|
totalLeft = totalLeft - metadata.Erasure.BlockSize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user