mirror of
https://github.com/minio/minio.git
synced 2025-11-27 12:53:45 -05:00
obj: Object api handle all errors in common location. (#1343)
This commit is contained in:
committed by
Harshavardhana
parent
5c33b68318
commit
91588209fa
@@ -148,7 +148,7 @@ func (xl XL) writeErasure(volume, path string, reader *io.PipeReader) {
|
||||
|
||||
// Remove previous temp writers for any failure.
|
||||
xl.cleanupCreateFileOps(volume, path, append(writers, metadataWriters...)...)
|
||||
reader.CloseWithError(err)
|
||||
reader.CloseWithError(errWriteQuorum)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ func (xl XL) writeErasure(volume, path string, reader *io.PipeReader) {
|
||||
|
||||
// Remove previous temp writers for any failure.
|
||||
xl.cleanupCreateFileOps(volume, path, append(writers, metadataWriters...)...)
|
||||
reader.CloseWithError(err)
|
||||
reader.CloseWithError(errWriteQuorum)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user