mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1394] [MERGED] Added a class for automating fdentity reference counts #1955
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#1955
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/1394
Author: @ggtakec
Created: 9/13/2020
Status: ✅ Merged
Merged: 9/14/2020
Merged by: @gaul
Base:
master← Head:auto_fdentity📝 Commits (1)
debe199Added a class for automating fdentity reference counts📊 Changes
7 files changed (+373 additions, -162 deletions)
View changed files
📝
src/Makefile.am(+1 -0)📝
src/fdcache.cpp(+8 -3)📝
src/fdcache.h(+1 -1)➕
src/fdcache_auto.cpp(+144 -0)➕
src/fdcache_auto.h(+63 -0)📝
src/fdcache_entity.h(+1 -0)📝
src/s3fs.cpp(+155 -158)📄 Description
Relevant Issue (if applicable)
#1385 #1387
Details
Due to a bug in the number of references in the file descriptor of a cache file, I have added a class that allows the destructor to automatically decrement the number of references.
By using this class other than fdcache related class, we can prevent the leakage of the number of references.
Checking the number of references by test is difficult.
Therefore, this additional class AutoFdEntity prevents inconsistencies in the number of references.
Also, when the cache file is left open at the end of the s3fs process (when there is a high possibility of a problem), a warning is output.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.