[Zodb-checkins] CVS: ZODB3/ZEO - CommitLog.py:1.4.10.1
Jeremy Hylton
jeremy at zope.com
Wed Aug 27 12:06:22 EDT 2003
Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv1595
Modified Files:
Tag: ZODB3-3_1-branch
CommitLog.py
Log Message:
Add a size() method that tells how big the commit log is.
=== ZODB3/ZEO/CommitLog.py 1.4 => 1.4.10.1 ===
--- ZODB3/ZEO/CommitLog.py:1.4 Thu Aug 29 15:00:21 2002
+++ ZODB3/ZEO/CommitLog.py Wed Aug 27 11:06:11 2003
@@ -31,6 +31,9 @@
self.stores = 0
self.read = 0
+ def size(self):
+ return self.file.tell()
+
def store(self, oid, serial, data, version):
self.pickler.dump((oid, serial, data, version))
self.stores += 1
More information about the Zodb-checkins
mailing list