pull/1/head
Michael Peter Christen 10 years ago
parent 191ec8c82a
commit c465b791af

@ -599,7 +599,7 @@ public final class CrawlSwitchboard {
return profileKeys; return profileKeys;
} }
public Set<String> getFinishesProfiles(CrawlQueues crawlQueues) { public Set<String> getFinishedProfiles(CrawlQueues crawlQueues) {
// clear the counter cache // clear the counter cache
this.profilesActiveCrawlsCounter.clear(); this.profilesActiveCrawlsCounter.clear();

@ -2319,7 +2319,7 @@ public final class Switchboard extends serverSwitch {
log.info("cleanup post-processed " + proccount + " documents"); log.info("cleanup post-processed " + proccount + " documents");
} else { } else {
Set<String> deletionCandidates = collection1Configuration.contains(CollectionSchema.harvestkey_s.getSolrFieldName()) ? Set<String> deletionCandidates = collection1Configuration.contains(CollectionSchema.harvestkey_s.getSolrFieldName()) ?
this.crawler.getFinishesProfiles(this.crawlQueues) : new HashSet<String>(); this.crawler.getFinishedProfiles(this.crawlQueues) : new HashSet<String>();
int cleanupByHarvestkey = deletionCandidates.size(); int cleanupByHarvestkey = deletionCandidates.size();
if (cleanupByHarvestkey > 0) { if (cleanupByHarvestkey > 0) {
if (postprocessing) { if (postprocessing) {

Loading…
Cancel
Save