mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
First go at bug 413
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1655,6 +1655,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
|
||||
checkAbleToDoWork(true, false);
|
||||
if (!mainIndexExists())
|
||||
{
|
||||
remainingCount = size;
|
||||
return;
|
||||
}
|
||||
try
|
||||
@@ -1672,6 +1673,12 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
|
||||
try
|
||||
{
|
||||
searcher = getSearcher(null);
|
||||
// commit on another thread - appears like there is no index ...try later
|
||||
if(searcher == null)
|
||||
{
|
||||
remainingCount = size;
|
||||
return;
|
||||
}
|
||||
Hits hits;
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user