Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1155 Host/domain limit in generator is generate.max.count+1

Markus Jelsma5327e966d2a5
diff --git a/CHANGES.txt b/CHANGES.txt
index 213ba72ca..250788b7a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Nutch Change Log
+* NUTCH-1155 Host/domain limit in generator is generate.max.count+1 (markus)
+
* NUTCH-1061 Migrate MoreIndexingFilter from Apache ORO to java.util.regex (markus)
* NUTCH-1178 Incorrect CSV header CrawlDatumCsvOutputFormat (markus)
diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.java
index b7617734c..a39ab566d 100644
--- a/src/java/org/apache/nutch/crawl/Generator.java
+++ b/src/java/org/apache/nutch/crawl/Generator.java
@@ -279,7 +279,7 @@ public class Generator extends Configured implements Tool {
// reached the limit of allowed URLs per host / domain
// see if we can put it in the next segment?
- if (hostCount[1] > maxCount) {
+ if (hostCount[1] >= maxCount) {
if (hostCount[0] < maxNumSegments) {
hostCount[0]++;
hostCount[1] = 0;