mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-13 01:05:47 +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:
@@ -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