mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
don't clobber existing storefile every put block
This commit is contained in:
parent
723f4078a3
commit
c2dfcb1f01
@ -42,7 +42,7 @@ class BucketWriter(Referenceable):
|
||||
# last one may be short, and we don't know the total number of
|
||||
# segments so we can't tell which is which.
|
||||
assert len(data) <= self.blocksize
|
||||
f = open(os.path.join(self.incominghome, 'data'), 'wb')
|
||||
f = fileutil.open_or_create(os.path.join(self.incominghome, 'data'))
|
||||
f.seek(self.blocksize*segmentnum)
|
||||
f.write(data)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user