[Zope-Checkins] CVS: Zope2 - SetTemplate.c:1.6.2.6

Jim Fulton jim@digiciool.com
Mon, 12 Mar 2001 12:30:48 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak:/tmp/cvs-serv30050

Modified Files:
      Tag: Catalog-BTrees-Integration
	SetTemplate.c 
Log Message:
Fixed failure to detect changes in bucket when not storing bucket as
separate database record.



--- Updated File SetTemplate.c in package Zope2 --
--- SetTemplate.c	2001/02/26 17:50:26	1.6.2.5
+++ SetTemplate.c	2001/03/12 17:30:48	1.6.2.6
@@ -90,7 +90,7 @@
   int i;
 
   UNLESS (PyArg_ParseTuple(args, "O", &key)) return NULL;
-  if ( (i=_bucket_set(self, key, Py_None, 1, 1)) < 0) return NULL;
+  if ( (i=_bucket_set(self, key, Py_None, 1, 1, 0)) < 0) return NULL;
   return PyInt_FromLong(i);
 }
 
@@ -119,7 +119,7 @@
               Py_XDECREF(tb);
               break;
             }
-          ind=_bucket_set(self, o, Py_None, 1, 1);
+          ind=_bucket_set(self, o, Py_None, 1, 1, 0);
           Py_DECREF(o);
           if (ind < 0) return NULL;
           n += ind;
@@ -135,7 +135,7 @@
   PyObject *key;
 
   UNLESS (PyArg_ParseTuple(args, "O", &key)) return NULL;
-  if (_bucket_set(self, key, NULL, 0, 1) < 0) return NULL;
+  if (_bucket_set(self, key, NULL, 0, 1, 0) < 0) return NULL;
 
   Py_INCREF(Py_None);
   return Py_None;