mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1990] [MERGED] Fixed bugs about stream upload #2289
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#2289
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/1990
Author: @ggtakec
Created: 7/18/2022
Status: ✅ Merged
Merged: 7/19/2022
Merged by: @gaul
Base:
master← Head:fix_stream_upload📝 Commits (1)
613d2a3Fixed bugs about stream upload📊 Changes
5 files changed (+124 additions, -121 deletions)
View changed files
📝
src/fdcache_entity.cpp(+70 -32)📝
src/fdcache_entity.h(+7 -0)📝
src/fdcache_fdinfo.cpp(+14 -78)📝
src/fdcache_fdinfo.h(+6 -11)📝
src/types.h(+27 -0)📄 Description
Relevant Issue (if applicable)
#1802
Details
There was a bug in the code merged in #1802, so this PR fixed it.
(The tests for
test_truncate_uploadandtest_upload_sparsefileare failed.)Fixed this bug
Perhaps the inconvenience was manifested in this
stream uploadlogic after merged #1887.The range areas which were untreated area was managed by
UntreatedParts untreated_listvalue, which was implemented in thePseudoFdInfoclass.This has been fixed by moving it to the
FdEntityclass.Fixed another bug
Along with this fix, I found that there was a possibility of SEGV error, so it was fixed.
It was a problem with pointer management of
etagpair structure(which had etag and upload number).I fixed this by adding and using the
petagpool structure.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.