[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:
gojomo
2011-01-26 03:08:32 +00:00
parent 8212d1c0dd
commit a3d4dc5ac2
@@ -66,7 +66,7 @@ public class TooManyHopsDecideRule extends PredicatedDecideRule {
*/
@Override
protected boolean evaluate(CrawlURI uri) {
return uri.getHopCount() <= getMaxHops();
return uri.getHopCount() > getMaxHops();
}
}