[Zodb-checkins] CVS: ZODB3/ZEO - CommitLog.py:1.4.70.1 StorageServer.py:1.98.2.3

Jeremy Hylton jeremy at zope.com
Thu Sep 4 19:01:25 EDT 2003


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv21448/ZEO

Modified Files:
      Tag: ZODB3-3_2-branch
	CommitLog.py StorageServer.py 
Log Message:
Add log message with number of objects and size of transaction log.


=== ZODB3/ZEO/CommitLog.py 1.4 => 1.4.70.1 ===
--- ZODB3/ZEO/CommitLog.py:1.4	Thu Aug 29 15:00:21 2002
+++ ZODB3/ZEO/CommitLog.py	Thu Sep  4 18:01:24 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


=== ZODB3/ZEO/StorageServer.py 1.98.2.2 => 1.98.2.3 ===
--- ZODB3/ZEO/StorageServer.py:1.98.2.2	Thu Sep  4 17:27:57 2003
+++ ZODB3/ZEO/StorageServer.py	Thu Sep  4 18:01:24 2003
@@ -564,6 +564,8 @@
 
     def _restart(self, delay=None):
         # Restart when the storage lock is available.
+        self.log("Preparing to commit transaction: %d objects, %d bytes" %
+                 (self.txnlog.stores, self.txnlog.size()), level=zLOG.BLATHER)
         self._tpc_begin(self.transaction, self.tid, self.status)
         loads, loader = self.txnlog.get_loader()
         for i in range(loads):




More information about the Zodb-checkins mailing list