mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-07 14:36:28 +00:00
[HER-1834] log-bloat, memory problems when hopsPath grows endlessly with no max-hops limit set
* TooManyHopsDecideRule
remove inadvertent reversal of sense of comparison, making default scope reject almost everything (and breaking most self-tests)
This commit is contained in:
1 parent
8212d1c0dd
commit
a3d4dc5ac2
1 file changed
+1
-1
@@ -66,7 +66,7 @@ public class TooManyHopsDecideRule extends PredicatedDecideRule {
|
||||
*/
|
||||
@Override
|
||||
protected boolean evaluate(CrawlURI uri) {
|
||||
return uri.getHopCount() <= getMaxHops();
|
||||
return uri.getHopCount() > getMaxHops();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user