[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/Connection.py Merge rev 40737 from 3.6 branch.

Tim Peters tim.one at comcast.net
Mon Dec 12 11:57:26 EST 2005


Log message for revision 40738:
  Merge rev 40737 from 3.6 branch.
  
  Note that nailing the type of oid to str may allow some
  thread simplifications in Connection._invalidated handling.
  Thanks to Florent Guillaume for noticing!
  

Changed:
  U   ZODB/trunk/src/ZODB/Connection.py

-=-
Modified: ZODB/trunk/src/ZODB/Connection.py
===================================================================
--- ZODB/trunk/src/ZODB/Connection.py	2005-12-12 16:55:16 UTC (rev 40737)
+++ ZODB/trunk/src/ZODB/Connection.py	2005-12-12 16:57:26 UTC (rev 40738)
@@ -125,6 +125,9 @@
         # will execute atomically by virtue of the GIL.  But some storage
         # might generate oids where hash or compare invokes Python code.  In
         # that case, the GIL can't save us.
+        # Note:  since that was written, it was officially declared that the
+        # type of an oid is str.  TODO:  remove the related now-unnecessary
+        # critical sections (if any -- this needs careful thought).
 
         self._inv_lock = threading.Lock()
         self._invalidated = d = {}



More information about the Zodb-checkins mailing list