Skip to content

Commit

Permalink
s3: remove MultipartCombineSmallPart boolean in flushpart
Browse files Browse the repository at this point in the history
  • Loading branch information
dhij committed Aug 22, 2023
1 parent 08bc793 commit 55e48a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/storage/driver/s3-aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ func (w *writer) flushPart() error {
// nothing to write
return nil
}
if w.driver.MultipartCombineSmallPart && len(w.pendingPart) < int(w.driver.ChunkSize) {
if len(w.pendingPart) < int(w.driver.ChunkSize) {
// closing with a small pending part
// combine ready and pending to avoid writing a small part
w.readyPart = append(w.readyPart, w.pendingPart...)
Expand Down

0 comments on commit 55e48a3

Please sign in to comment.