mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
This commit is contained in:
parent
409e09c1e5
commit
e99cb05516
@ -176,6 +176,8 @@ func (xl xlObjects) GetObject(bucket, object string, startOffset int64) (io.Read
|
|||||||
fileWriter.CloseWithError(err)
|
fileWriter.CloseWithError(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Reset offset to 0 as it would be non-0 only for the first loop if startOffset is non-0.
|
||||||
|
offset = 0
|
||||||
if _, err := io.Copy(fileWriter, r); err != nil {
|
if _, err := io.Copy(fileWriter, r); err != nil {
|
||||||
fileWriter.CloseWithError(err)
|
fileWriter.CloseWithError(err)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user