[PR #2545] [MERGED] Fixed exclusive control of upload_id in PseudoFdInfo class #2611

Closed
opened 2026-03-04 02:06:25 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: fix/fdinfo_lock


📝 Commits (1)

  • 432834f Fixed 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_id variable.
To achieve this, IsUploadingHasLock() is added, which does not hold the IsUploading() 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.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/2545 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 10/13/2024 **Status:** ✅ Merged **Merged:** 10/15/2024 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `fix/fdinfo_lock` --- ### 📝 Commits (1) - [`432834f`](https://github.com/s3fs-fuse/s3fs-fuse/commit/432834ff98bdc9d0e5c55d3272810e2c1c9bfe3b) Fixed exclusive control of upload_id in PseudoFdInfo class ### 📊 Changes **2 files changed** (+97 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `src/fdcache_fdinfo.cpp` (+81 -43) 📝 `src/fdcache_fdinfo.h` (+16 -13) </details> ### 📄 Description ### Relevant Issue (if applicable) #2493 #2487 #254 ### Details This was modified to minimize exclusive control of the `PseudoFdInfo::upload_id` variable. To achieve this, `IsUploadingHasLock()` is added, which does not hold the `IsUploading()` 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:06:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2611
No description provided.