[Zodb-checkins] SVN: ZODB/branches/alienoid-btrees_pop/src/BTrees/B
Added small comment to show that 'set' operation is actually
Ruslan Spivak
rspivak at nuxeo.com
Wed Aug 31 17:58:51 EDT 2005
Log message for revision 38218:
Added small comment to show that 'set' operation is actually
'delete' operation.
Changed:
U ZODB/branches/alienoid-btrees_pop/src/BTrees/BTreeTemplate.c
U ZODB/branches/alienoid-btrees_pop/src/BTrees/BucketTemplate.c
-=-
Modified: ZODB/branches/alienoid-btrees_pop/src/BTrees/BTreeTemplate.c
===================================================================
--- ZODB/branches/alienoid-btrees_pop/src/BTrees/BTreeTemplate.c 2005-08-31 21:28:47 UTC (rev 38217)
+++ ZODB/branches/alienoid-btrees_pop/src/BTrees/BTreeTemplate.c 2005-08-31 21:58:51 UTC (rev 38218)
@@ -1745,6 +1745,7 @@
value = _BTree_get(self, key, 0);
if (value != NULL) {
+ /* Delete key and associated value */
if (_BTree_set(self, key, 0, 0, 0) < 0) {
Py_DECREF(value);
return NULL;;
Modified: ZODB/branches/alienoid-btrees_pop/src/BTrees/BucketTemplate.c
===================================================================
--- ZODB/branches/alienoid-btrees_pop/src/BTrees/BucketTemplate.c 2005-08-31 21:28:47 UTC (rev 38217)
+++ ZODB/branches/alienoid-btrees_pop/src/BTrees/BucketTemplate.c 2005-08-31 21:58:51 UTC (rev 38218)
@@ -1305,6 +1305,7 @@
value = _bucket_get(self, key, 0);
if (value != NULL) {
+ /* Delete key and associated value */
if (_bucket_set(self, key, 0, 0, 0, &dummy_changed) < 0) {
Py_DECREF(value);
return NULL;;
More information about the Zodb-checkins
mailing list