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.
This commit is contained in:
parent
7991f133d5
commit
4239bb201b
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public final class Node implements INode, Serializable {
|
||||||
|
|
||||||
// set lastmodified and created timestamps and mark as clean
|
// set lastmodified and created timestamps and mark as clean
|
||||||
created = lastmodified = System.currentTimeMillis();
|
created = lastmodified = System.currentTimeMillis();
|
||||||
markAs(CLEAN);
|
state = CLEAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue