[Zope-Checkins] CVS: ZODB3/Persistence - cPickleCache.c:1.85.8.14

Tim Peters tim.one@comcast.net
Wed, 9 Jul 2003 17:17:00 -0400


Update of /cvs-repository/ZODB3/Persistence
In directory cvs.zope.org:/tmp/cvs-serv26807/Persistence

Modified Files:
      Tag: zodb33-devel-branch
	cPickleCache.c 
Log Message:
cc_clear():  Assert that the ring isn't locked.


=== ZODB3/Persistence/cPickleCache.c 1.85.8.13 => 1.85.8.14 ===
--- ZODB3/Persistence/cPickleCache.c:1.85.8.13	Wed Jul  9 16:39:46 2003
+++ ZODB3/Persistence/cPickleCache.c	Wed Jul  9 17:16:55 2003
@@ -609,10 +609,12 @@
     not safe to decref the dict until it's empty, so we need to manually
     clear those out of the dict, too.  We accomplish that by replacing
     all the ghost objects with None.
+    */
 
-    We don't need to lock the ring, because the cache is unreachable.
+    /* We don't need to lock the ring, because the cache is unreachable.
     It should be impossible for anyone to be modifying the cache.
     */
+    assert(! self->ring_lock);
 
     while (self->ring_home.r_next != &self->ring_home) {
 	CPersistentRing *here = self->ring_home.r_next;