[Zodb-checkins] CVS: Zope/lib/python/BTrees - BTreeTemplate.c:1.25.14.2
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 20 Mar 2002 09:27:06 -0500
Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv7587
Modified Files:
Tag: toby-stiff-cache-branch
BTreeTemplate.c
Log Message:
Change an assertion that is being frequently triggered under the new cache. Im not sure if this is to be expected due to the new weak reference, whether the assertion is bogus, or whether this has exposed a long standing bug. In any case there seems to be no ill effects of weakening this assertion. This definitely needs resolving before toby-stiff-cache-branch can be merged with the trunk
=== Zope/lib/python/BTrees/BTreeTemplate.c 1.25.14.1 => 1.25.14.2 ===
if (self->firstbucket)
{
- ASSERT(self->firstbucket->ob_refcnt > 1,
+ ASSERT(self->firstbucket->ob_refcnt > 0,
"Invalid firstbucket pointer", -1);
Py_DECREF(self->firstbucket);
self->firstbucket=NULL;