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:
0aed9d1
)
fix counting of bytes written
author
Rob Kinninmont
<robk@allmydata.com>
Fri, 1 Dec 2006 03:37:36 +0000
(20:37 -0700)
committer
Rob Kinninmont
<robk@allmydata.com>
Fri, 1 Dec 2006 03:37:36 +0000
(20:37 -0700)
allmydata/bucketstore.py
patch
|
blob
|
history
diff --git
a/allmydata/bucketstore.py
b/allmydata/bucketstore.py
index bdbce44e3e27213bc76bdebe8d969e7e36cbee9f..f1b811ffc2dcb23c18194546b29a4cc7da74d087 100644
(file)
--- a/
allmydata/bucketstore.py
+++ b/
allmydata/bucketstore.py
@@
-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)