mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1098] [MERGED] Refixed to use copy api in multipart upload #1812
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#1812
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/1098
Author: @ggtakec
Created: 7/15/2019
Status: ✅ Merged
Merged: 9/26/2019
Merged by: @gaul
Base:
master← Head:mix_upload📝 Commits (2)
72d87cdFixed to use copy api in multipart upload3c0df7dMerge branch 'master' into mix_upload📊 Changes
8 files changed (+619 additions, -20 deletions)
View changed files
📝
doc/man/s3fs.1(+5 -0)📝
src/curl.cpp(+168 -2)📝
src/curl.h(+5 -0)📝
src/fdcache.cpp(+326 -17)📝
src/fdcache.h(+15 -1)📝
src/s3fs.cpp(+9 -0)📝
src/s3fs_util.cpp(+7 -0)📝
test/integration-test-main.sh(+84 -0)📄 Description
Relevant Issue (if applicable)
#607 #1027
Details
Fixes
Modified to use Upload part and Copy part(api) when multipart upload of object.
This will allow you to download and upload the smallest sized parts if you upload after writing a part of the object.
(In accordance with the minimum part size 5MB of multipart upload, useless download and upload will not be performed.)
As much as possible, s3fs will improve performance by uploading only the updated area.
The nomixupload option has been added to keep the previous behavior backward compatible.
When this option is specified, s3fs operates as before.
Also, when the nocopyapi, norenameapi and nomultipart options are specified, the same operation as before is performed.
Besides this, test cases for this modified are added. (and the two typo corrections.)
Notes(for canceled PR #1027 )
This PR is based on the canceled PR #1027 and rebases on the master that has advanced.
The issues pointed out in #1027 have been corrected.
However, there was a following bug in #1027.
The bug is not only uploading the wrote(updated) range but uploading all the downloaded range.
In this PR, only the minimum range written to the file(each part of multipart upload needs 5MB or more) is uploaded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.