[Zope3-checkins] CVS: Zope3/src/zodb/zeo - client.py:1.4.2.8

Jeremy Hylton jeremy@zope.com
Tue, 25 Feb 2003 12:16:48 -0500


Update of /cvs-repository/Zope3/src/zodb/zeo
In directory cvs.zope.org:/tmp/cvs-serv8368

Modified Files:
      Tag: ZODB3-2-integration-branch
	client.py 
Log Message:
Client must call setLastTid() when its own transactions commit.


=== Zope3/src/zodb/zeo/client.py 1.4.2.7 => 1.4.2.8 ===
--- Zope3/src/zodb/zeo/client.py:1.4.2.7	Fri Feb 14 15:55:04 2003
+++ Zope3/src/zodb/zeo/client.py	Tue Feb 25 12:16:48 2003
@@ -772,12 +772,13 @@
             if f is not None:
                 f()
 
-            self._server.tpcFinish(self._serial)
+            tid = self._server.tpcFinish(self._serial)
 
             r = self._check_serials()
             assert r is None or len(r) == 0, "unhandled serialnos: %s" % r
 
             self._update_cache()
+            self._cache.setLastTid(tid)
         finally:
             self.end_transaction()