Fixed complete muppetry

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2879 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-05-12 16:42:47 +00:00
parent 55393337ef
commit 3473e1a1a0

View File

@@ -116,7 +116,6 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
* *
* TODO: Consider if this information needs to be persisted for recovery * TODO: Consider if this information needs to be persisted for recovery
*/ */
private Set<NodeRef> deletions = new LinkedHashSet<NodeRef>(); private Set<NodeRef> deletions = new LinkedHashSet<NodeRef>();
/** /**
@@ -801,7 +800,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
if (commandList.size() > 0) if (commandList.size() > 0)
{ {
Command last = commandList.get(commandList.size() - 1); Command last = commandList.get(commandList.size() - 1);
if (last.action == command.action) if ((last.action == command.action) && (last.nodeRef.equals(command.nodeRef)))
{ {
return; return;
} }
@@ -842,7 +841,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
Command current = it.previous(); Command current = it.previous();
if (matchExact) if (matchExact)
{ {
if (current.action == command.action) if ((current.action == command.action) && (current.nodeRef.equals(command.nodeRef)))
{ {
it.remove(); it.remove();
return; return;