mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1404] [MERGED] fix dead lock in disk insufficient and optimize code #1964
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#1964
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/1404
Author: @liuyongqing
Created: 9/16/2020
Status: ✅ Merged
Merged: 9/19/2020
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (1)
211cc0ffix dead lock in disk insufficient and optimize code📊 Changes
4 files changed (+29 additions, -59 deletions)
View changed files
📝
src/fdcache_entity.cpp(+26 -54)📝
src/fdcache_entity.h(+0 -1)📝
src/metaheader.h(+0 -1)📝
src/s3fs.cpp(+3 -3)📄 Description
Relevant Issue (if applicable)
Dead lock will occured in UploadPendingMeta which will call put_headers, the situation like follow:
In step one and step two, the dead lock occured, the solution is not get fdmanager lock to update mtime. In adittion, the file x-cos-meta-xxx can directly update to orgmeta and only need to call put_headers once in UploadPendingMeta.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.