>        long contentLength = 
> checkNotNull(blob.getMetadata().getContentMetadata().getContentLength(),
>              "must provide content-length to use multi-part upload");
>        MultipartUploadSlicingAlgorithm algorithm = new 
> MultipartUploadSlicingAlgorithm(
>              getMinimumMultipartPartSize(), getMaximumMultipartPartSize(), 
> getMaximumNumberOfParts());
>        long partSize = algorithm.calculateChunkSize(contentLength);
>        MultipartUpload mpu = initiateMultipartUpload(container, 
> blob.getMetadata(), partSize, overrides);
>        int partNumber = 1;
> +
> +      int numThreads = 16;
> +      if (System.getProperty("jclouds.mpu.parallel.degree") != null) {
> +         numThreads = 
> Integer.getInteger(System.getProperty("jclouds.mpu.parallel.degree"));

Also I am not very sure if we should be using this property at all and I am not 
sure about how it is documented (the website states it has a default value of 
4, actually, not 16, but it is also not used elsewhere in our code).

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/975/files/70ba6e0f5aa5c660cab27eb6a450ca7f1e435235#r67881183

Reply via email to