Apache Nutch is an extensible and scalable web crawler
NUTCH-1341 NotModified time set to now but page not modified
Markus Jelsmaa6b4acc182d0
diff --git a/CHANGES.txt b/CHANGES.txtindex 8775534f6..e9650c690 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change Log(trunk) Current Development:+* NUTCH-1341 NotModified time set to now but page not modified (markus)+* NUTCH-1215 UpdateDB should not require segment as input (markus)* NUTCH-1383 IndexingFiltersChecker to show error message instead of null pointer exception (snagel)diff --git a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java b/src/java/org/apache/nutch/crawl/CrawlDbReducer.javaindex 860f68c40..306545393 100644--- a/src/java/org/apache/nutch/crawl/CrawlDbReducer.java+++ b/src/java/org/apache/nutch/crawl/CrawlDbReducer.java@@ -221,6 +221,10 @@ public class CrawlDbReducer implements Reducer<Text, CrawlDatum, Text, CrawlDatu// set the result status and signatureif (modified == FetchSchedule.STATUS_NOTMODIFIED) {result.setStatus(CrawlDatum.STATUS_DB_NOTMODIFIED);++ // NUTCH-1341 The page is not modified according to its signature, let's reset lastModified as well+ result.setModifiedTime(prevModifiedTime);+if (oldSet) result.setSignature(old.getSignature());} else {switch (fetch.getStatus()) {