Skip to content

Commit

Permalink
Returned to sorting (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Feb 16, 2016
1 parent 135e394 commit bff0671
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
package dk.netarkivet.harvester.scheduler.jobgen;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.Iterator;
Expand Down Expand Up @@ -114,9 +115,7 @@ public int generateJobs(HarvestDefinition harvest) {
final Comparator<DomainConfiguration> domainConfigurationSubsetComparator = getDomainConfigurationSubsetComparator(
harvest);
log.trace("Sorting domains with instance of " + domainConfigurationSubsetComparator.getClass().getName());
// Don't really need to sort here - just by those which are equal under the comparartor.
// Collections.sort(subset, domainConfigurationSubsetComparator);
chunk(subset, domainConfigurationSubsetComparator);
Collections.sort(subset, domainConfigurationSubsetComparator);
log.trace("{} domainconfigs now sorted and ready to processing for harvest #{}", subset.size(),
harvest.getOid());
jobsMade += processDomainConfigurationSubset(harvest, subset.iterator());
Expand Down

0 comments on commit bff0671

Please sign in to comment.