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

Jeremy Hylton jeremy at zope.com
Thu Jun 12 18:22:29 EDT 2003


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

Modified Files:
      Tag: ZODB3-3_1-branch
	ClientCache.py 
Log Message:
Remove assert on serial numbers.

It's expensive and it doesn't seem to hold in the presence of abort /
commit version.  XXX Not sure what effect versions has.


=== ZODB3/ZEO/ClientCache.py 1.38.2.3 => 1.38.2.4 ===
--- ZODB3/ZEO/ClientCache.py:1.38.2.3	Thu Jun 12 16:31:21 2003
+++ ZODB3/ZEO/ClientCache.py	Thu Jun 12 17:22:28 2003
@@ -529,13 +529,6 @@
     def _store(self, oid, p, s, version, pv, sv):
         # Caller must acquire lock.
         
-        # Make sure the serial number we are writing is greater than
-        # a serial number already in the cache.  This is a crucial
-        # invariant for cache consistency.
-        if __debug__:
-            oldserial = self._get_serial(oid)
-            assert oldserial is None or oldserial < (s or sv)
-        
         if not s:
             p = ''
             s = '\0\0\0\0\0\0\0\0'




More information about the Zodb-checkins mailing list