mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1640] [MERGED] Do not create zero-byte object when creating file #2084
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#2084
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/1640
Author: @gaul
Created: 4/29/2021
Status: ✅ Merged
Merged: 4/30/2021
Merged by: @ggtakec
Base:
master← Head:zero-byte-blob📝 Commits (1)
eb92fe9Do not create zero-byte object when creating file📊 Changes
3 files changed (+35 additions, -6 deletions)
View changed files
📝
src/fdcache_entity.h(+6 -0)📝
src/s3fs.cpp(+14 -6)📝
test/integration-test-main.sh(+15 -0)📄 Description
Previously s3fs created this object to store metadata and overwrote it
when flushing. This prevented use with object stores which do not
allow overwrites like HDS. Instead only create an in-memory
representation which reduces the time to create small files.
Fixes #1013.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.