Permalink
Browse files

[bugfix] Nodes were removed from indexes multiple times when using no…

…de-level update expressions.
  • Loading branch information...
1 parent 8943f5c commit ef1d13f98ee61d6422990bcfd888055d305c17f5 @wolfgangmm wolfgangmm committed Jan 27, 2014
@@ -349,6 +349,7 @@ protected void removeNodes() {
LOG.warn("Error while deleting lucene index entries: " + e.getMessage(), e);
} finally {
index.releaseWriter(writer);
+ nodesToRemove = null;
}
}
@@ -255,8 +255,8 @@ public int getMode() {
@Override
public StoredNode getReindexRoot(StoredNode node, NodePath path, boolean includeSelf) {
- if (node.getNodeType() == Node.ATTRIBUTE_NODE)
- return null;
+// if (node.getNodeType() == Node.ATTRIBUTE_NODE)
+// return null;
if (config == null)
return null;
NodePath p = new NodePath(path);
@@ -387,6 +387,7 @@ protected void removeNodes() {
} catch (IOException e) {
LOG.warn("Error while deleting lucene index entries: " + e.getMessage(), e);
} finally {
+ nodesToRemove = null;
index.releaseWriter(writer);
}
}

0 comments on commit ef1d13f

Please sign in to comment.