mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #993] [MERGED] Fixed a bug about overwrite metadata at updating directory stats #1747
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#1747
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/993
Author: @ggtakec
Created: 3/29/2019
Status: ✅ Merged
Merged: 3/29/2019
Merged by: @ggtakec
Base:
master← Head:test📝 Commits (1)
ea517c8Fixed a bug about overwrite metadata at updating directory stats📊 Changes
1 file changed (+17 additions, -12 deletions)
View changed files
📝
src/s3fs.cpp(+17 -12)📄 Description
Relevant Issue (if applicable)
#730
Details
When updating directory stats, directory objects were always re-created.
A directory object that s3fs recognizes and creates as a directory is an object of
dir/path.If there are other directory object (
dir) orno directory objectin the bucket, s3fs can recognize them as directories.When updating directory statistics (metadata), s3fs will delete and recreate directory objects other than
dir/types.(This is able to convert other directory object type to a
dir/object)However, there was a bug in determining the type of this directory object, and the directory object was always recreated.
In this PR, it has been modified to make the right decision.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.