mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
fix counting of bytes written
This commit is contained in:
parent
0aed9d1528
commit
877dfb4eaf
@ -102,6 +102,7 @@ class Bucket:
|
||||
precondition(len(data) + self._bytes_written <= self._size)
|
||||
self._data.write(data)
|
||||
self._data.flush()
|
||||
self._bytes_written += len(data)
|
||||
|
||||
def finalise(self):
|
||||
precondition(self._bytes_written == self._size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user