Merged DEV to HEAD

30321: ALF-10115: Working copies in repository upgraded to 4.0 does not get cm:original association - breaks document listing
          In WorkProvider.getNextWork() method, changed type of results to Set<Pair<Long, NodeRef>>
          to prevent duplicate nodes in the returned collection.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30322 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-09-07 14:36:56 +00:00
parent 4f00e67d91
commit c5f4647c48

View File

@@ -339,7 +339,7 @@ public class CopiedFromAspectPatch extends AbstractPatch
public synchronized Collection<Pair<Long, NodeRef>> getNextWork()
{
// Record the results
final List<Pair<Long, NodeRef>> results = new ArrayList<Pair<Long, NodeRef>>(batchMaxQueryRange);
final Set<Pair<Long, NodeRef>> results = new HashSet<Pair<Long, NodeRef>>(batchMaxQueryRange*2);
// Record the node IDs for bulk loading
final List<Long> nodeIds = new ArrayList<Long>(batchMaxQueryRange);