]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix counting of bytes written
authorRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:37:36 +0000 (20:37 -0700)
committerRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:37:36 +0000 (20:37 -0700)
allmydata/bucketstore.py

index bdbce44e3e27213bc76bdebe8d969e7e36cbee9f..f1b811ffc2dcb23c18194546b29a4cc7da74d087 100644 (file)
@@ -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)