[Zodb-checkins] CVS: Zope3/src/zodb/btrees - BTreeTemplate.c:1.10 BucketTemplate.c:1.11

Tim Peters tim.one@comcast.net
Tue, 4 Mar 2003 17:36:57 -0500


Update of /cvs-repository/Zope3/src/zodb/btrees
In directory cvs.zope.org:/tmp/cvs-serv31826/src/zodb/btrees

Modified Files:
	BTreeTemplate.c BucketTemplate.c 
Log Message:
bucket__p_deactivate(),
BTree__p_deactivate():  Don't clear the data structure when po_oid is NULL.


=== Zope3/src/zodb/btrees/BTreeTemplate.c 1.9 => 1.10 ===
--- Zope3/src/zodb/btrees/BTreeTemplate.c:1.9	Tue Mar  4 16:06:39 2003
+++ Zope3/src/zodb/btrees/BTreeTemplate.c	Tue Mar  4 17:36:53 2003
@@ -814,7 +814,7 @@
 static PyObject *
 BTree__p_deactivate(BTree *self)
 {
-    if (self->po_state == UPTODATE && self->po_dm) {
+    if (self->po_state == UPTODATE && self->po_dm && self->po_oid) {
 	if (_BTree_clear(self) < 0)
 	    return NULL;
 	self->po_state = GHOST;


=== Zope3/src/zodb/btrees/BucketTemplate.c 1.10 => 1.11 ===
--- Zope3/src/zodb/btrees/BucketTemplate.c:1.10	Sat Feb 22 01:00:17 2003
+++ Zope3/src/zodb/btrees/BucketTemplate.c	Tue Mar  4 17:36:53 2003
@@ -1025,7 +1025,7 @@
 static PyObject *
 bucket__p_deactivate(Bucket *self)
 {
-    if (self->po_state == UPTODATE && self->po_dm) {
+    if (self->po_state == UPTODATE && self->po_dm && self->po_oid) {
 	if (_bucket_clear(self) < 0)
 	    return NULL;
 	self->po_state = GHOST;