← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20701: Prefer multipart uploads where available

 

------------------------------------------------------------
revno: 20701
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-10-14 16:28:05 +0200
message:
  Prefer multipart uploads where available
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java	2015-10-13 22:20:57 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/fileresource/JCloudsFileResourceContentStore.java	2015-10-14 14:28:05 +0000
@@ -64,6 +64,8 @@
 import java.util.regex.Pattern;
 import java.util.stream.Collectors;
 
+import static org.jclouds.blobstore.options.PutOptions.Builder.multipart;
+
 /**
  * @author Halvdan Hoem Grelland
  */
@@ -328,7 +330,7 @@
 
         try
         {
-            etag = blobStore.putBlob( container, blob );
+            etag = blobStore.putBlob( container, blob, multipart() );
         }
         catch ( RuntimeException rte )
         {