mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #2466] [MERGED] Remove uses of AutoLock::ALREADY_LOCKED #2552
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#2552
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/2466
Author: @gaul
Created: 6/4/2024
Status: ✅ Merged
Merged: 6/23/2024
Merged by: @ggtakec
Base:
master← Head:autolock/already-locked📝 Commits (1)
887fb0bRemove uses of AutoLock::ALREADY_LOCKED📊 Changes
16 files changed (+347 additions, -335 deletions)
View changed files
📝
src/autolock.h(+3 -0)📝
src/cache.cpp(+16 -24)📝
src/cache.h(+13 -4)📝
src/curl.cpp(+14 -8)📝
src/curl.h(+3 -2)📝
src/fdcache.cpp(+12 -11)📝
src/fdcache.h(+6 -2)📝
src/fdcache_auto.cpp(+2 -2)📝
src/fdcache_auto.h(+1 -1)📝
src/fdcache_entity.cpp(+55 -89)📝
src/fdcache_entity.h(+75 -21)📝
src/fdcache_fdinfo.cpp(+39 -39)📝
src/fdcache_fdinfo.h(+7 -7)📝
src/s3fs.cpp(+22 -21)📝
src/s3fs_cred.cpp(+61 -86)📝
src/s3fs_cred.h(+18 -18)📄 Description
Instead annotate the methods with
REQUIRESso that the caller knows if they should lock. For public interfaces, introduceHasLockwrappers. This simplifies control flow, allows migration tostd::mutex, and eventually will enable use of static lock checking.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.