[Zodb-checkins] CVS: ZODB3/ZEO - ClientCache.py:1.45

Jeremy Hylton jeremy at zope.com
Mon Jun 16 14:16:15 EDT 2003


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

Modified Files:
	ClientCache.py 
Log Message:
Log the ltid when the cache is opened.


=== ZODB3/ZEO/ClientCache.py 1.44 => 1.45 ===
--- ZODB3/ZEO/ClientCache.py:1.44	Tue Jun 10 13:08:10 2003
+++ ZODB3/ZEO/ClientCache.py	Mon Jun 16 13:16:14 2003
@@ -189,8 +189,13 @@
             f[0].write(magic + '\0' * (headersize - len(magic)))
             current = 0
 
-        self.log("%s: storage=%r, size=%r; file[%r]=%r" %
-                 (self.__class__.__name__, storage, size, current, p[current]))
+        if self._ltid:
+            ts = "; last txn=%x" % u64(self._ltid)
+        else:
+            ts = ""
+        self.log("%s: storage=%r, size=%r; file[%r]=%r%s" %
+                 (self.__class__.__name__, storage, size, current, p[current],
+                  ts))
 
         self._current = current
         self._setup_trace()




More information about the Zodb-checkins mailing list