projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8386b02
)
offloaded.py: when resuming, append new data to incoming file, rather than overwrite it.
author
Brian Warner
<warner@lothar.com>
Thu, 17 Jan 2008 08:15:32 +0000
(
01:15
-0700)
committer
Brian Warner
<warner@lothar.com>
Thu, 17 Jan 2008 08:15:32 +0000
(
01:15
-0700)
src/allmydata/offloaded.py
patch
|
blob
|
history
diff --git
a/src/allmydata/offloaded.py
b/src/allmydata/offloaded.py
index 598a8b88a0a72ff54856aa22c5a9af48543c42ba..8b0145eab2507b44fab76be4a91c12c451b2d258 100644
(file)
--- 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()