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:
hns 2004-06-14 14:04:30 +00:00
parent f334900a79
commit 866f4fdf2e

View file

@ -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());