Bump reva to latest main branch

For https://github.com/opencloud-eu/reva/pull/217
This commit is contained in:
Ralf Haferkamp
2025-05-20 17:39:42 +02:00
parent 97f97a4a4a
commit 27fa5e3236
6 changed files with 32 additions and 16 deletions
+10 -2
View File
@@ -290,13 +290,15 @@ type downloader struct {
in *s3.GetObjectInput
w io.WriterAt
wg sync.WaitGroup
m sync.Mutex
wg sync.WaitGroup
m sync.Mutex
once sync.Once
pos int64
totalBytes int64
written int64
err error
etag string
partBodyMaxRetries int
}
@@ -424,6 +426,9 @@ func (d *downloader) downloadChunk(chunk dlchunk) error {
// Get the next byte range of data
in.Range = aws.String(chunk.ByteRange())
if in.VersionId == nil && d.etag != "" {
in.IfMatch = aws.String(d.etag)
}
var n int64
var err error
@@ -466,6 +471,9 @@ func (d *downloader) tryDownloadChunk(in *s3.GetObjectInput, w io.Writer) (int64
return 0, err
}
d.setTotalBytes(resp) // Set total if not yet set.
d.once.Do(func() {
d.etag = aws.StringValue(resp.ETag)
})
var src io.Reader = resp.Body
if d.cfg.BufferProvider != nil {