Author: toad
Date: 2008-02-23 17:35:21 +0000 (Sat, 23 Feb 2008)
New Revision: 18133
Modified:
trunk/freenet/src/freenet/node/FailureTableEntry.java
Log:
Fix a worse (and stupid) bug: failedTo() was only working when logMINOR was
true!
=> per-node failure tables were only working if you had log level minor for
FailureTableEntry.
Modified: trunk/freenet/src/freenet/node/FailureTableEntry.java
===================================================================
--- trunk/freenet/src/freenet/node/FailureTableEntry.java 2008-02-23
17:33:44 UTC (rev 18132)
+++ trunk/freenet/src/freenet/node/FailureTableEntry.java 2008-02-23
17:35:21 UTC (rev 18133)
@@ -93,6 +93,7 @@
public synchronized void failedTo(PeerNode routedTo, int timeout, long
now, short htl) {
if(logMINOR) {
Logger.minor(this, "Failed sending request to
"+routedTo.shortToString()+" : timeout "+timeout);
+ }
int idx = addRequestedFrom(routedTo, now);
long curTimeoutTime = requestedTimeouts[idx];
long newTimeoutTime = now + timeout;
@@ -101,7 +102,6 @@
requestedTimeouts[idx] = newTimeoutTime;
requestedTimeoutHTLs[idx] = htl;
}
- }
}
// These are rather low level, in an attempt to absolutely minimize
memory usage...