From 41cbd1e3a71bbee4348a79247a3093b441c3f036 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 17 Jan 2008 01:15:32 -0700 Subject: [PATCH] offloaded.py: when resuming, append new data to incoming file, rather than overwrite it. --- src/allmydata/offloaded.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.45.2