Add a loadNodes() to releaseNode() so we are sure child index has been loaded.
This is to prevent the index to be loaded subsequently, which potentially would reintroduce the released node.
This commit is contained in:
parent
f334900a79
commit
866f4fdf2e
1 changed files with 5 additions and 0 deletions
|
@ -1253,6 +1253,11 @@ public final class Node implements INode, Serializable {
|
|||
|
||||
boolean removed = false;
|
||||
|
||||
// load subnodes in case they haven't been loaded.
|
||||
// this is to prevent subsequent access to reload the
|
||||
// index which would potentially still contain the removed child
|
||||
loadNodes();
|
||||
|
||||
if (subnodes != null) {
|
||||
synchronized (subnodes) {
|
||||
removed = subnodes.remove(node.getHandle());
|
||||
|
|
Loading…
Add table
Reference in a new issue