Update of /cvsroot/freenet/freenet/src/freenet/node/states/request
In directory sc8-pr-cvs1:/tmp/cvs-serv4685/src/freenet/node/states/request
Modified Files:
DataPending.java
Log Message:
6297:
Lots of Iakin's stuff, but on this commit:
New FailureTable - not secondary failtable yet, but new and improved plain fail table.
Have individual FailItem's, within a FailureEntry, for different HTLs, with a separate
LRU queue,
Use LinkedList's, rather than Heap's, because we don't need an ADT.
Generally a fairly deep rewrite of the same methods.
Initial specs: 20,000 keys, 100,000 items (item is an HTL:time pair).
Don't pass in time - we don't need it, use the current time, and since we are
synchronized this means we always start at the end of the queue.
Index: DataPending.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/request/DataPending.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -w -r1.23 -r1.24
--- DataPending.java 31 Oct 2003 19:21:17 -0000 1.23
+++ DataPending.java 1 Nov 2003 22:05:36 -0000 1.24
@@ -138,7 +138,7 @@
dataNotFound(n, toq, true);
// Add this key to the FailureTable
if (!n.ds.contains(searchKey)) // that sort of sucks...
- n.ft.failedToFind(searchKey, hopsToLive, toq);
+ n.ft.failedToFind(searchKey, hopsToLive);
// well, technically they did their job...
routes.routeSucceeded(dnf.source.isCached());
return new RequestDone(this);
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs