Skip to content

Commit 1040591

Browse files
Merge pull request #62995 from nextcloud/backport/62919/stable33
[stable33] fix(ObjectStore): reset multipart upload byte counter on retry
2 parents fe1f0e8 + 98a632a commit 1040591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/private/Files/ObjectStore/S3ObjectTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ protected function writeMultiPart(string $urn, StreamInterface $stream, array $m
142142
$exception = null;
143143
$state = null;
144144
$size = $stream->getSize();
145-
$totalWritten = 0;
146145

147146
// retry multipart upload once with concurrency at half on failure
148147
while (!$uploaded && $attempts <= 1) {
148+
$totalWritten = 0;
149149
$uploader = new MultipartUploader($this->getConnection(), $stream, [
150150
'bucket' => $this->bucket,
151151
'concurrency' => $concurrency,

0 commit comments

Comments
 (0)