mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1277] [MERGED] Fixed insufficient upload size for mix multipart upload #1896
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1896
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1277
Author: @ggtakec
Created: 4/20/2020
Status: ✅ Merged
Merged: 4/22/2020
Merged by: @gaul
Base:
master← Head:fix_mix_mutiup📝 Commits (1)
b2bad3aFixed insufficient upload size for mix multipart upload📊 Changes
2 files changed (+9 additions, -7 deletions)
View changed files
📝
src/fdcache.cpp(+8 -6)📝
src/fdcache.h(+1 -1)📄 Description
Relevant Issue (if applicable)
#1220 #1276
Details
This PR is a fix for the cause of #1220.
The bug of #1220 is that the size of one part does not meet the required size of multipart when uploading as mix multipart upload.
If the size of one part does not satisfy the required size of multipart, s3fs will download the data around that part and try to satisfy the required size.
And s3fs will upload with a part size that is larger than the requested size.
However, the code contained a bug, and although s3fs downloaded it, s3fs uploaded it without including that downloaded area.
This PR fixes this bug.
Although not included in this PR, the 416 HTTP response code will be corrected in the PR of #1276.
This PR and #1276 will be the correction of the defect of #1220.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.