mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
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#1472
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/350
Author: @ggtakec
Created: 2/6/2016
Status: ✅ Merged
Merged: 2/6/2016
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (1)
b90b51fChanged cache out logic for stat - #340📊 Changes
2 files changed (+113 additions, -34 deletions)
View changed files
📝
src/cache.cpp(+102 -26)📝
src/cache.h(+11 -8)📄 Description
Chaned the cache out logic for stat information for #340.
The logic before the change cached out the stat information which had passed expire time + 1 second.
And s3fs removed only one entry at each cache-out.
s3fs update the time for cache-in when the cache is hit every time.
So if cache datas are continuous access, s3fs did not discard the cache.
This logic was very bad for a case of listing many object at one time.
Thus I changed this logic about that s3fs uses unixtime to struct timespec for cache-in time and removes caches if the cache count is over limit.
As a result of this change, it was able to reduce the amount of memory s3fs to use.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.