10315: Allow small block packing passing flush=False.
authorLucas Di Pentima <lucas@curoverse.com>
Mon, 24 Oct 2016 11:47:32 +0000 (08:47 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Mon, 24 Oct 2016 11:47:32 +0000 (08:47 -0300)
sdk/python/arvados/commands/put.py

index 89753a22863808c3fb89686cbf9948dae8760171..23852ad6f01c0cd05395298a471005b3b7747900 100644 (file)
@@ -472,7 +472,7 @@ class ArvPutUploadJob(object):
                 with self._collection_lock:
                     output = self._my_collection().open(filename, 'w')
             self._write(source_fd, output)
-            output.close()
+            output.close(flush=False)
 
     def _write(self, source_fd, output):
         first_read = True