Fixed formatting, removed checkWriteLock() in invalidateNode().
This commit is contained in:
parent
cfa6ddc3e0
commit
1fbe23bc03
1 changed files with 8 additions and 9 deletions
|
@ -444,15 +444,14 @@ public final class Node implements INode, Serializable {
|
||||||
// This doesn't make sense for transient nodes
|
// This doesn't make sense for transient nodes
|
||||||
if (state == TRANSIENT || state == NEW)
|
if (state == TRANSIENT || state == NEW)
|
||||||
return;
|
return;
|
||||||
checkWriteLock (); // ?? necessary ??
|
Relation rel = getDbMapping ().getSubnodeRelation ();
|
||||||
Relation rel = getDbMapping ().getSubnodeRelation ();
|
if (rel != null) {
|
||||||
if (rel != null) {
|
if (rel.usesPrimaryKey()) {
|
||||||
if (rel.usesPrimaryKey()) {
|
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
|
||||||
nmgr.evictKey (new DbKey (getDbMapping().getSubnodeMapping(), key));
|
} else {
|
||||||
} else {
|
nmgr.evictKey (new SyntheticKey (getKey(), key));
|
||||||
nmgr.evictKey (new SyntheticKey (getKey(), key));
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue