[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.73.2.23.2.8

Tim Peters tim.one at comcast.net
Wed Jun 11 18:06:43 EDT 2003


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

Modified Files:
      Tag: tim-loading_oids_status-branch
	ClientStorage.py 
Log Message:
Added morecomments about the _loading_oid_xyz dicts.


=== ZODB3/ZEO/ClientStorage.py 1.73.2.23.2.7 => 1.73.2.23.2.8 ===
--- ZODB3/ZEO/ClientStorage.py:1.73.2.23.2.7	Wed Jun 11 17:00:24 2003
+++ ZODB3/ZEO/ClientStorage.py	Wed Jun 11 17:06:42 2003
@@ -272,9 +272,10 @@
         # It's possible for different threads to attempt to load the same
         # oid at the same time.  To account for this, we keep a counter
         # in _loading_oid_count.  Invalidations are only handled when
-        # the count reaches zero.
-        self._loading_oid_count = {}
-        self._loading_oid_invs = {}
+        # the count reaches zero.  Mutations of these dicts are protected
+        # by _lock.
+        self._loading_oid_count = {}  # oid -> count of pending load()s
+        self._loading_oid_invs = {}   # oid -> set of invalidated versions
 
         # Can't read data in one thread while writing data
         # (tpc_finish) in another thread.  In general, the lock




More information about the Zodb-checkins mailing list