mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2545] [MERGED] Fixed exclusive control of upload_id in PseudoFdInfo class #2611
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#2611
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/2545
Author: @ggtakec
Created: 10/13/2024
Status: ✅ Merged
Merged: 10/15/2024
Merged by: @gaul
Base:
master← Head:fix/fdinfo_lock📝 Commits (1)
432834fFixed exclusive control of upload_id in PseudoFdInfo class📊 Changes
2 files changed (+97 additions, -56 deletions)
View changed files
📝
src/fdcache_fdinfo.cpp(+81 -43)📝
src/fdcache_fdinfo.h(+16 -13)📄 Description
Relevant Issue (if applicable)
#2493 #2487 #254
Details
This was modified to minimize exclusive control of the
PseudoFdInfo::upload_idvariable.To achieve this,
IsUploadingHasLock()is added, which does not hold theIsUploading()lock, to streamline the locking process on the caller side.As a result of this efficiency, it is no longer necessary to lock before calling
ParallelMultipartUpload().Please refer to the code for detailed differences.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.