3427: Restore arv-put's resume functionality.
authorBrett Smith <brett@curoverse.com>
Wed, 6 Aug 2014 21:28:12 +0000 (17:28 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 6 Aug 2014 21:28:12 +0000 (17:28 -0400)
The refactoring in 0d1a48e accidentally introduced a bug where arv-put
wipes its resume cache clean before building the uploader.  Because
the refactor always arranges `resume_cache = None` when the user
doesn't want to resume, we can fix the bug by just skipping the wipe.
Closes #3427.

sdk/python/arvados/commands/put.py

index 55bf7fcc0f295c0ac6be2330ce06cb4c31ecba29..fa648dac4592d6adee7821a0eac523355584cdc4 100644 (file)
@@ -412,7 +412,6 @@ def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr):
     if resume_cache is None:
         writer = ArvPutCollectionWriter(resume_cache, reporter, bytes_expected)
     else:
-        resume_cache.restart()
         writer = ArvPutCollectionWriter.from_cache(
             resume_cache, reporter, bytes_expected)