mirror of
https://github.com/apache/jclouds.git
synced 2025-02-28 21:39:09 +00:00
Ensure MPU has a minimum size
This commit is contained in:
parent
209152e30a
commit
1ac73d3093
@ -93,6 +93,11 @@ public final class MultipartUploadSlicingAlgorithm {
|
||||
parts = (int)(length / partSize);
|
||||
}
|
||||
}
|
||||
if (partSize < minimumPartSize) {
|
||||
partSize = minimumPartSize;
|
||||
unitPartSize = minimumPartSize;
|
||||
parts = (int)(length / unitPartSize);
|
||||
}
|
||||
if (partSize > maximumPartSize) {
|
||||
partSize = maximumPartSize;
|
||||
unitPartSize = maximumPartSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user