Permalink
Browse files

NUTCH-1476 SegmentReader getStats should set parsed = -1 if no parsin…

…g took place

git-svn-id: https://svn.apache.org/repos/asf/nutch/trunk@1397298 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 68d638d commit 8edb66fe1dd23d494a9e4032b3a30b1f9acb3cf5 @sebastian-nagel sebastian-nagel committed Oct 11, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES.txt
  2. +1 −1 src/java/org/apache/nutch/segment/SegmentReader.java
View
@@ -2,6 +2,8 @@ Nutch Change Log
(trunk) Current Development:
+* NUTCH-1476 SegmentReader getStats should set parsed = -1 if no parsing took place (snagel)
+
* NUTCH-1252 SegmentReader -get shows wrong data (snagel)
* NUTCH-1344 BasicURLNormalizer to normalize https same as http (snagel)
@@ -488,7 +488,7 @@ public void getStats(Path segment, final SegmentReaderStats stats) throws Except
stats.fetched = cnt;
}
Path parseDir = new Path(segment, ParseData.DIR_NAME);
- if (fs.exists(fetchDir) && fs.getFileStatus(fetchDir).isDir()) {
+ if (fs.exists(parseDir) && fs.getFileStatus(parseDir).isDir()) {
cnt = 0L;
long errors = 0L;
ParseData value = new ParseData();

0 comments on commit 8edb66f

Please sign in to comment.