[Zodb-checkins] CVS: ZODB3/persistent - cPickleCache.c:1.87.10.3

Steve Alexander steve at cat-box.net
Wed Jan 28 12:26:07 EST 2004


Update of /cvs-repository/ZODB3/persistent
In directory cvs.zope.org:/tmp/cvs-serv6829

Modified Files:
      Tag: zope3-zodb3-devel-branch
	cPickleCache.c 
Log Message:
Fixed bug where error was not set when deleting an item from the cache.

Added a unit test that demonstrates the bug just fixed.



=== ZODB3/persistent/cPickleCache.c 1.87.10.2 => 1.87.10.3 ===
--- ZODB3/persistent/cPickleCache.c:1.87.10.2	Mon Jan 26 15:37:19 2004
+++ ZODB3/persistent/cPickleCache.c	Wed Jan 28 12:25:34 2004
@@ -865,6 +865,7 @@
     /* unlink this item from the ring */
     v = PyDict_GetItem(self->data, key);
     if (v == NULL)
+	PyErr_SetObject(PyExc_KeyError, key);
 	return -1;
 
     if (PyType_Check(v)) {




More information about the Zodb-checkins mailing list