mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #1714] [MERGED] Splited some methods of FdEntity class by uploading mode #2135
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#2135
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/1714
Author: @ggtakec
Created: 7/4/2021
Status: ✅ Merged
Merged: 7/10/2021
Merged by: @gaul
Base:
master← Head:split_methods📝 Commits (1)
167bb64Splited some methods of FdEntity class by uploading mode📊 Changes
2 files changed (+434 additions, -101 deletions)
View changed files
📝
src/fdcache_entity.cpp(+428 -101)📝
src/fdcache_entity.h(+6 -0)📄 Description
Relevant Issue (if applicable)
n/a
Details
This is not a bug or a fix for a logic change.
The
FdEntity::RowFlushandFdEntity::Writemethods are common method for all uploading options(nomultipart,multipart,mixmaultipart).Depending on the upload mode, the processing of these methods is roughly similar logic, but slightly different.
For this reason, we should be aware of the impact on other modes when modifying or changing methods.
I've split these methods in consideration of adding more modes in the future.
The processing of
multipartandmixmultipartis very similar and seems verbose, but I focused on mode specific independence.@gaul Please give me your opinion.
I thought it would be better to split it when adding a new mode(ex. adding new mode which is uploading file as a stream).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.