* Fix bug 582, which is a regression caused by the fix for bug 551.
http://helma.org/bugs/show_bug.cgi?id=582 http://helma.org/bugs/show_bug.cgi?id=551
This commit is contained in:
parent
3fcdfd72ce
commit
891d0f74e1
1 changed files with 3 additions and 2 deletions
|
@ -1858,10 +1858,11 @@ public final class NodeManager {
|
|||
return null;
|
||||
} else if (Thread.currentThread() instanceof Transactor) {
|
||||
// Check if the node is already registered with the transactor -
|
||||
// it may be in the process of being DELETED.
|
||||
// it may be in the process of being DELETED, but do return the
|
||||
// new node if the old one has been marked as INVALID.
|
||||
DbKey key = new DbKey(dbmap, id);
|
||||
Node dirtyNode = ((Transactor) Thread.currentThread()).getDirtyNode(key);
|
||||
if (dirtyNode != null) {
|
||||
if (dirtyNode != null && dirtyNode.getState() != Node.INVALID) {
|
||||
return dirtyNode;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue