mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Tweaks to some methods that were heavily used.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -801,7 +801,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
|
||||
if (commandList.size() > 0)
|
||||
{
|
||||
Command last = commandList.get(commandList.size() - 1);
|
||||
if ((last.action == command.action) && (last.nodeRef.equals(command.nodeRef)))
|
||||
if (last.action == command.action)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -842,7 +842,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
|
||||
Command current = it.previous();
|
||||
if (matchExact)
|
||||
{
|
||||
if ((current.action == command.action) && (current.nodeRef.equals(command.nodeRef)))
|
||||
if (current.action == command.action)
|
||||
{
|
||||
it.remove();
|
||||
return;
|
||||
@@ -1738,6 +1738,11 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
|
||||
{
|
||||
// Document document = helper.document;
|
||||
NodeRef ref = helper.nodeRef;
|
||||
// bypass nodes that have disappeared
|
||||
if (!nodeService.exists(ref))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
List<Document> docs = createDocuments(ref, false, true, false);
|
||||
for (Document doc : docs)
|
||||
|
Reference in New Issue
Block a user