mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2209] [MERGED] Fixed data race in threads found thread sanitizer #2390
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#2390
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/2209
Author: @ggtakec
Created: 7/9/2023
Status: ✅ Merged
Merged: 7/9/2023
Merged by: @gaul
Base:
master← Head:fix_data_race📝 Commits (1)
c8b9d4aFixed data race in threads found thread sanitizer📊 Changes
3 files changed (+4 additions, -5 deletions)
View changed files
📝
src/curl.cpp(+2 -2)📝
src/fdcache_entity.cpp(+2 -2)📝
src/s3fs.cpp(+0 -1)📄 Description
Relevant Issue (if applicable)
n/a
Details
The following error in the ThreadSinitizer test was detected, so it was fixed.
This is because some methods that deal with the
pending_statusvariable use different locking variables than others.These methods used
fdent_data_lockand should have usedfdent_lock.(
FdEntity::UploadPendingcalls theFlushmethod, sofdent_data_lockdoesn't work)Also, the comments in
s3fs.cppwere confirmed by this fix and have been removed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.