mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1698] [MERGED] Fixed a bug about rename existing file of different sizes by mpcopy #2124
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#2124
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/1698
Author: @ggtakec
Created: 6/25/2021
Status: ✅ Merged
Merged: 6/25/2021
Merged by: @gaul
Base:
master← Head:fix_rename_bug📝 Commits (1)
d4f4d22Fixed a bug about rename existing file of different sizes by mpcopy📊 Changes
3 files changed (+28 additions, -8 deletions)
View changed files
📝
src/fdcache_entity.cpp(+1 -1)📝
src/s3fs.cpp(+13 -7)📝
test/integration-test-main.sh(+14 -0)📄 Description
Relevant Issue (if applicable)
#1695
Details
In the move(rename) logic of the file, there was a problem that it failed when the destination file existed and the size was different.
When moving(renaming) file, it made a mistake the file size of the source file and the destination file.
This happened for files of a size that would be subject to multipart upload(copy).
And added a simple test case, too.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.