[Zodb-checkins] CVS: ZODB3/ZODB - cPersistence.c:1.70
Jeremy Hylton
jeremy at zope.com
Tue May 13 19:58:38 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv32551
Modified Files:
cPersistence.c
Log Message:
Improve a comment.
=== ZODB3/ZODB/cPersistence.c 1.69 => 1.70 ===
--- ZODB3/ZODB/cPersistence.c:1.69 Wed Apr 23 16:05:51 2003
+++ ZODB3/ZODB/cPersistence.c Tue May 13 18:58:37 2003
@@ -192,7 +192,13 @@
self->ring.prev = NULL;
self->ring.next = NULL;
self->state = cPersistent_GHOST_STATE;
- /* self->ring held a reference to the object. */
+
+ /* We remove the reference to the just ghosted object that the ring
+ * holds. Note that the dictionary of oids->objects has an uncounted
+ * reference, so if the ring's reference was the only one, this frees
+ * the ghost object. Note further that the object's dealloc knows to
+ * inform the dictionary that it is going away.
+ */
Py_DECREF(self);
}
More information about the Zodb-checkins
mailing list