[Zodb-checkins] CVS: Zope/lib/python/BTrees - BTreeTemplate.c:1.61

Tim Peters tim.one@comcast.net
Mon, 17 Jun 2002 19:55:48 -0400


Update of /cvs-repository/Zope/lib/python/BTrees
In directory cvs.zope.org:/tmp/cvs-serv17691

Modified Files:
	BTreeTemplate.c 
Log Message:
BTree_maxminKey():  I was too aggressive in pruning persistence hair.


=== Zope/lib/python/BTrees/BTreeTemplate.c 1.60 => 1.61 ===
 BTree_maxminKey(BTree *self, PyObject *args, int min)
 {
-  PyObject *key=0;
+  PyObject *key = 0;
   Bucket *bucket = NULL;
   int offset, rc;
 
@@ -1100,6 +1100,9 @@
   else if (min)
     {
       bucket = self->firstbucket;
+      PER_ALLOW_DEACTIVATION(self);
+      PER_ACCESSED(self);
+      PER_USE_OR_RETURN(bucket, NULL);
       Py_INCREF(bucket);
       offset = 0;
     }