]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
offloaded.py: when resuming, append new data to incoming file, rather than overwrite it.
authorBrian Warner <warner@lothar.com>
Thu, 17 Jan 2008 08:15:32 +0000 (01:15 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 17 Jan 2008 08:15:32 +0000 (01:15 -0700)
src/allmydata/offloaded.py

index 598a8b88a0a72ff54856aa22c5a9af48543c42ba..8b0145eab2507b44fab76be4a91c12c451b2d258 100644 (file)
@@ -182,7 +182,9 @@ class CHKCiphertextFetcher(AskUntilSuccessMixin):
             self.log("we already have %d bytes" % self._have, level=log.NOISY)
         else:
             self._have = 0
-        self._f = open(self._incoming_file, "wb")
+            self.log("we do not have any ciphertext yet", level=log.NOISY)
+        self.log("starting ciphertext fetch", level=log.NOISY)
+        self._f = open(self._incoming_file, "ab")
 
         # now loop to pull the data from the readers
         d = defer.Deferred()