Author: j16sdiz
Date: 2008-07-09 08:41:57 +0000 (Wed, 09 Jul 2008)
New Revision: 21005

Modified:
   
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
Log:
never read free entry

Modified: 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
   2008-07-09 08:41:34 UTC (rev 21004)
+++ 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
   2008-07-09 08:41:57 UTC (rev 21005)
@@ -565,6 +565,9 @@
                Entry entry = new Entry(mbf, null, null);
                entry.curOffset = offset;

+               if (entry.isFree())
+                       return entry; // don't read free entry
+               
                if (routingKey != null) {
                        if (!Arrays.equals(routingKey, 
entry.digestedRoutingKey))
                                return null;


Reply via email to