On Wednesday 20 August 2008 09:31, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-08-20 08:31:01 +0000 (Wed, 20 Aug 2008)
> New Revision: 22049
>
> Modified:
>
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
> Log:
> fix 2516: probablyInStore() for SaltedHashFreenetStore
>
> Modified:
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
> ===================================================================
> ---
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
2008-08-20 08:30:40 UTC (rev 22048)
> +++
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
2008-08-20 08:31:01 UTC (rev 22049)
> @@ -1671,4 +1671,15 @@
> e.printStackTrace();
> }
> }
> +
> + public boolean probablyInStore(byte[] routingKey) {
> + configLock.readLock().lock();
> + try {
> + if (!checkBloom)
> + return false;
No, it has to err on the side of caution. If it doesn't know, it must return
true.
> + return
bloomFilter.checkFilter(cipherManager.getDigestedKey(routingKey));
> + } finally {
> + configLock.readLock().unlock();
> + }
> + }
> }
-------------- 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/20080823/7ffa6aee/attachment.pgp>