From: Brian Warner Date: Thu, 17 Jan 2008 08:15:32 +0000 (-0700) Subject: offloaded.py: when resuming, append new data to incoming file, rather than overwrite it. X-Git-Tag: allmydata-tahoe-0.8.0~300 X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/reliability?a=commitdiff_plain;h=41cbd1e3a71bbee4348a79247a3093b441c3f036;p=tahoe-lafs%2Ftahoe-lafs.git offloaded.py: when resuming, append new data to incoming file, rather than overwrite it. --- diff --git a/src/allmydata/offloaded.py b/src/allmydata/offloaded.py index 598a8b88..8b0145ea 100644 --- a/src/allmydata/offloaded.py +++ b/src/allmydata/offloaded.py @@ -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()