|
|
|
@ -450,7 +450,10 @@ func (s *siaObjects) GetObjectNInfo(ctx context.Context, bucket, object string, |
|
|
|
|
err := s.GetObject(ctx, bucket, object, startOffset, length, pw, objInfo.ETag, minio.ObjectOptions{}) |
|
|
|
|
pw.CloseWithError(err) |
|
|
|
|
}() |
|
|
|
|
return minio.NewGetObjectReaderFromReader(pr, objInfo), nil |
|
|
|
|
// Setup cleanup function to cause the above go-routine to
|
|
|
|
|
// exit in case of partial read
|
|
|
|
|
pipeCloser := func() { pr.Close() } |
|
|
|
|
return minio.NewGetObjectReaderFromReader(pr, objInfo, pipeCloser), nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (s *siaObjects) GetObject(ctx context.Context, bucket string, object string, startOffset int64, length int64, writer io.Writer, etag string, opts minio.ObjectOptions) error { |
|
|
|
|