mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ACE-3235 - LuceneIndexer does not support nodes being created in different domains within one transaction
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@88806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -722,6 +722,17 @@ public class ADMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<NodeRef> imp
|
|||||||
}
|
}
|
||||||
}, tenantService.getDomain(new NodeRef(stringNodeRef).getStoreRef().getIdentifier()));
|
}, tenantService.getDomain(new NodeRef(stringNodeRef).getStoreRef().getIdentifier()));
|
||||||
}
|
}
|
||||||
|
else if (tenantService.isEnabled() && !tenantService.getDomain(new NodeRef(stringNodeRef).getStoreRef().getIdentifier()).equals(TenantService.DEFAULT_DOMAIN))
|
||||||
|
{
|
||||||
|
return TenantUtil.runAsTenant(new TenantRunAsWork<List<Document>>()
|
||||||
|
{
|
||||||
|
public List<Document> doWork()
|
||||||
|
{
|
||||||
|
return createDocumentsImpl(stringNodeRef, ftsStatus, indexAllProperties, includeDirectoryDocuments,
|
||||||
|
cascade, pathsToRegenerate, childAssociationsSinceFlush, deltaReader, mainReader);
|
||||||
|
}
|
||||||
|
}, tenantService.getDomain(new NodeRef(stringNodeRef).getStoreRef().getIdentifier()));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return createDocumentsImpl(stringNodeRef, ftsStatus, indexAllProperties, includeDirectoryDocuments,
|
return createDocumentsImpl(stringNodeRef, ftsStatus, indexAllProperties, includeDirectoryDocuments,
|
||||||
|
Reference in New Issue
Block a user