From 877dfb4eafa7582b1ff53bc692fbd6aea1bb6c50 Mon Sep 17 00:00:00 2001 From: Rob Kinninmont Date: Thu, 30 Nov 2006 20:37:36 -0700 Subject: [PATCH] fix counting of bytes written --- allmydata/bucketstore.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.45.2