kopia lustrzana https://github.com/gaul/s3proxy
Get Azure maximum part size dynamically
This size will increase from 4 to 100 MB in jclouds 2.1.0.
References #191. Follow on to 2ddce6af86
.
pull/210/head
rodzic
0105fd66df
commit
d427c8f7df
|
@ -2356,7 +2356,8 @@ public class S3ProxyHandler {
|
||||||
// Azure has a maximum part size of 4 MB while S3 has a minimum
|
// Azure has a maximum part size of 4 MB while S3 has a minimum
|
||||||
// part size of 5 MB and a maximum of 5 GB. Split a single S3
|
// part size of 5 MB and a maximum of 5 GB. Split a single S3
|
||||||
// part multiple Azure parts.
|
// part multiple Azure parts.
|
||||||
long azureMaximumMultipartPartSize = 4 * 1024 * 1024;
|
long azureMaximumMultipartPartSize =
|
||||||
|
blobStore.getMaximumMultipartPartSize();
|
||||||
HashingInputStream his = new HashingInputStream(Hashing.md5(),
|
HashingInputStream his = new HashingInputStream(Hashing.md5(),
|
||||||
is);
|
is);
|
||||||
for (int offset = 0, subPartNumber = 0; offset < contentLength;
|
for (int offset = 0, subPartNumber = 0; offset < contentLength;
|
||||||
|
|
Ładowanie…
Reference in New Issue