Author: toad
Date: 2009-04-03 18:58:08 +0000 (Fri, 03 Apr 2009)
New Revision: 26477

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileFetcherKeyListener.java
Log:
Only salt once on addKey, don't double check


Modified: 
trunk/freenet/src/freenet/client/async/SplitFileFetcherKeyListener.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherKeyListener.java     
2009-04-03 18:46:23 UTC (rev 26476)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherKeyListener.java     
2009-04-03 18:58:08 UTC (rev 26477)
@@ -135,9 +135,10 @@
        void addKey(Key key, int segNo, ClientContext context) {
                byte[] saltedKey = context.getChkFetchScheduler().saltKey(key);
                filter.addKey(saltedKey);
-               segmentFilters[segNo].addKey(localSaltKey(key));
-               if(!segmentFilters[segNo].checkFilter(localSaltKey(key)))
-                       Logger.error(this, "Key added but not in filter: 
"+key+" on "+this);
+               byte[] localSalted = localSaltKey(key);
+               segmentFilters[segNo].addKey(localSalted);
+//             if(!segmentFilters[segNo].checkFilter(localSalted))
+//                     Logger.error(this, "Key added but not in filter: 
"+key+" on "+this);
        }
 
        private byte[] localSaltKey(Key key) {

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to