On Thursday 05 June 2008 16:31, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-06-05 15:31:35 +0000 (Thu, 05 Jun 2008)
> New Revision: 20219
> 
> Modified:
>    
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
> Log:
> fix key count on overwrite
> 
> 
> Modified: 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
> ===================================================================
> --- 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
2008-06-05 15:31:08 UTC (rev 20218)
> +++ 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
2008-06-05 15:31:35 UTC (rev 20219)
> @@ -229,11 +229,8 @@
>                                       }
>  
>                                       // Overwrite old offset
> -                                     if (updateBloom)
> -                                             
> bloomFilter.updateFilter(getDigestedRoutingKey(routingKey), 
syncBloom);
>                                       Entry entry = new Entry(routingKey, 
> header, data);
> -                                     writeEntry(entry, oldOffset);
> -                                     writes.incrementAndGet();
> +                                     writeEntry(entry, oldOffset); // 
> overwrite, don't increase keyCount
>                                       return;
>                               }

Did you mean to not update the bloom filter here? Why?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080712/54c97001/attachment.pgp>

Reply via email to