From: Rob Kinninmont Date: Fri, 1 Dec 2006 03:37:36 +0000 (-0700) Subject: fix counting of bytes written X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~510 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/somewhere?a=commitdiff_plain;h=877dfb4eafa7582b1ff53bc692fbd6aea1bb6c50;p=tahoe-lafs%2Ftahoe-lafs.git fix counting of bytes written --- diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index bdbce44e..f1b811ff 100644 --- 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)