[Zodb-checkins] CVS: ZODB3/Persistence - cPersistence.c:1.72.8.21

Tim Peters tim.one at comcast.net
Tue Jul 8 16:23:48 EDT 2003


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

Modified Files:
      Tag: zodb33-devel-branch
	cPersistence.c 
Log Message:
deallocated():  Moved a call out of an assert() stmt, as the call needs to
be made in release builds too.


=== ZODB3/Persistence/cPersistence.c 1.72.8.20 => 1.72.8.21 ===
--- ZODB3/Persistence/cPersistence.c:1.72.8.20	Tue Jul  8 14:19:45 2003
+++ ZODB3/Persistence/cPersistence.c	Tue Jul  8 15:23:43 2003
@@ -174,7 +174,8 @@
 	ghostify(self);
     if (self->cache) {
 	/* XXX Not sure if it ever makes sense for this function to fail. */
-	assert(cPersistenceCAPI->percachedel(self->cache, self->oid) >= 0);
+	int status = cPersistenceCAPI->percachedel(self->cache, self->oid);
+	assert(status >= 0);
     }
     /* If the object is being deallocated via GC, the percachedel call
        will not release the object's reference to the cache.




More information about the Zodb-checkins mailing list