[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - MTStorage.py:1.9

Tim Peters tim.one at comcast.net
Wed Jun 18 13:24:54 EDT 2003


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv21075/lib/python/ZODB/tests

Modified Files:
	MTStorage.py 
Log Message:
ZODBClientThread.get_thread_dict():  check7ZODBThreads fails often on
Fred's machine, due to this routine falling off the end and returning
None.  Sync'ing the connection after a ConflictError appears to fix
it, or at least make it much less likely to fail.


=== Zope/lib/python/ZODB/tests/MTStorage.py 1.8 => 1.9 ===
--- Zope/lib/python/ZODB/tests/MTStorage.py:1.8	Thu May 22 15:11:34 2003
+++ Zope/lib/python/ZODB/tests/MTStorage.py	Wed Jun 18 12:24:53 2003
@@ -96,6 +96,7 @@
                 return root.get(name)
             except ConflictError:
                 get_transaction().abort()
+                root._p_jar.sync()
 
 class StorageClientThread(TestThread):
 




More information about the Zodb-checkins mailing list