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;
+ return
bloomFilter.checkFilter(cipherManager.getDigestedKey(routingKey));
+ } finally {
+ configLock.readLock().unlock();
+ }
+ }
}