[Zodb-checkins] CVS: ZODB3/ZEO - StorageServer.py:1.74.2.6.4.2

Guido van Rossum guido@python.org
Tue, 17 Dec 2002 13:30:32 -0500


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

Modified Files:
      Tag: ZODB3-fast-restart-branch
	StorageServer.py 
Log Message:
Change the (internal) tpc_finish() method to return the tid of the
last transaction.


=== ZODB3/ZEO/StorageServer.py 1.74.2.6.4.1 => 1.74.2.6.4.2 ===
--- ZODB3/ZEO/StorageServer.py:1.74.2.6.4.1	Tue Dec 17 13:07:59 2002
+++ ZODB3/ZEO/StorageServer.py	Tue Dec 17 13:30:32 2002
@@ -414,7 +414,10 @@
                                    invalidated, self.get_size_info())
         self.transaction = None
         self.strategy = None
+        # Return the tid, for cache invalidation optimization
+        tid = self.storage.lastTransaction()
         self.handle_waiting()
+        return tid
 
     def tpc_abort(self, id):
         if not self.check_tid(id):