mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Tool to run the repository standalone (useful for CIFS and FTP server testing)
Importer no longer flushes integrity events Improvement to one-jar ant script Changed bean local references to normal references in scheduler git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2286 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -31,7 +31,6 @@ import java.util.Set;
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.policy.BehaviourFilter;
|
||||
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
||||
import org.alfresco.service.cmr.dictionary.ChildAssociationDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.ClassDefinition;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
@@ -395,11 +394,6 @@ public class ImporterComponent
|
||||
// Import tracking
|
||||
private List<ImportedNodeRef> nodeRefs = new ArrayList<ImportedNodeRef>();
|
||||
|
||||
// Flush threshold
|
||||
private int flushThreshold = 500;
|
||||
private int flushCount = 0;
|
||||
|
||||
|
||||
/**
|
||||
* Construct
|
||||
*
|
||||
@@ -535,14 +529,6 @@ public class ImporterComponent
|
||||
}
|
||||
}
|
||||
|
||||
// do we need to flush?
|
||||
flushCount++;
|
||||
if (flushCount > flushThreshold)
|
||||
{
|
||||
AlfrescoTransactionSupport.flush();
|
||||
flushCount = 0;
|
||||
}
|
||||
|
||||
return nodeRef;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user