[PR #2161] [MERGED] Fixed mount point stat flag to be thread safe #2361

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

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2161
Author: @ggtakec
Created: 5/13/2023
Status: Merged
Merged: 5/21/2023
Merged by: @gaul

Base: masterHead: fix_thread_race


📝 Commits (1)

  • 2d98fa2 Fixed mount point stat flag to be thread safe

📊 Changes

1 file changed (+78 additions, -6 deletions)

View changed files

📝 src/s3fs.cpp (+78 -6)

📄 Description

Relevant Issue (if applicable)

#2159

Details

Found mount point stat flags(has_mp_stat in src/s3fs.cpp) raced between threads.
Changed that flag to class so that access can be controlled exclusively.


🔄 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/2161 **Author:** [@ggtakec](https://github.com/ggtakec) **Created:** 5/13/2023 **Status:** ✅ Merged **Merged:** 5/21/2023 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `fix_thread_race` --- ### 📝 Commits (1) - [`2d98fa2`](https://github.com/s3fs-fuse/s3fs-fuse/commit/2d98fa26279973fb81a5a9089b8e9c0ba9324083) Fixed mount point stat flag to be thread safe ### 📊 Changes **1 file changed** (+78 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/s3fs.cpp` (+78 -6) </details> ### 📄 Description ### Relevant Issue (if applicable) #2159 ### Details Found mount point stat flags(`has_mp_stat` in `src/s3fs.cpp`) raced between threads. Changed that flag to `class` so that access can be controlled exclusively. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:05:09 +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#2361
No description provided.