mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
pkg/safe: remove temporary file on failure (#1774)
This commit is contained in:
@@ -167,7 +167,7 @@ func safeCloseAndRemove(writer io.WriteCloser) error {
|
||||
// If writer is a safe file, Attempt to close and remove.
|
||||
safeWriter, ok := writer.(*safe.File)
|
||||
if ok {
|
||||
return safeWriter.CloseAndRemove()
|
||||
return safeWriter.Abort()
|
||||
}
|
||||
wCloser, ok := writer.(*waitCloser)
|
||||
if ok {
|
||||
|
||||
Reference in New Issue
Block a user