From 4239bb201bbdcc794a1cfcdadd488508313b1afd Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 29 Mar 2004 13:04:04 +0000 Subject: [PATCH] Do not call markAs(CLEAN) in Node.init() because we don't know for sure if we are going to use it. If the node is loaded already and is infact dirty, calling markAs(CLEAN) will drop it from the transactor's dirty list. So what we do instead is to directly set the status flag to CLEAN. Fixes bug 352. --- src/helma/objectmodel/db/Node.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index d1d0e3fd..83f12acd 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -165,7 +165,7 @@ public final class Node implements INode, Serializable { // set lastmodified and created timestamps and mark as clean created = lastmodified = System.currentTimeMillis(); - markAs(CLEAN); + state = CLEAN; } /**