[Zodb-checkins] CVS: Zope3/src/persistence - persistence.c:1.5
Jeremy Hylton
jeremy@zope.com
Wed, 5 Mar 2003 13:55:56 -0500
Update of /cvs-repository/Zope3/src/persistence
In directory cvs.zope.org:/tmp/cvs-serv28586/persistence
Modified Files:
persistence.c
Log Message:
Make the code follow the comment. Don't mark GHOST as UPTODATE.
=== Zope3/src/persistence/persistence.c 1.4 => 1.5 ===
--- Zope3/src/persistence/persistence.c:1.4 Mon Feb 24 17:03:52 2003
+++ Zope3/src/persistence/persistence.c Wed Mar 5 13:55:49 2003
@@ -318,7 +318,7 @@
/* Mark a changed object as up-to-date, but do nothing if it's
already up-to-date or ghostified.
*/
- if (self->po_state > 0) /* changed or sticky */
+ if (self->po_state == CHANGED || self->po_state == STICKY)
self->po_state = UPTODATE;
} else if (newstate == CHANGED_DELETE) {
/* Force the object to UPTODATE state to guarantee that