[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.73.2.5.2.1

Jeremy Hylton jeremy@zope.com
Fri, 15 Nov 2002 11:59:32 -0500


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

Modified Files:
      Tag: ZODB3-restore-debug-branch
	ClientStorage.py 
Log Message:
Add lastTransaction() to ClientStorage for the benefit of new
implementation of checkUndoInVersion().


=== ZODB3/ZEO/ClientStorage.py 1.73.2.5 => 1.73.2.5.2.1 ===
--- ZODB3/ZEO/ClientStorage.py:1.73.2.5	Tue Nov 12 15:18:09 2002
+++ ZODB3/ZEO/ClientStorage.py	Fri Nov 15 11:59:31 2002
@@ -636,10 +636,14 @@
         """Internal helper to end a transaction."""
         # the right way to set self._transaction to None
         # calls notify() on _tpc_cond in case there are waiting threads
+        self._ltid = self._serial
         self._tpc_cond.acquire()
         self._transaction = None
         self._tpc_cond.notify()
         self._tpc_cond.release()
+
+    def lastTransaction(self):
+        return self._ltid
 
     def tpc_abort(self, transaction):
         """Storage API: abort a transaction."""