Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1360&p=9321#p9321
hermens2437beb96c07
diff --git a/source/de/anomic/kelondro/kelondroTree.java b/source/de/anomic/kelondro/kelondroTree.javaindex 929da4af7..a023772b9 100644--- a/source/de/anomic/kelondro/kelondroTree.java+++ b/source/de/anomic/kelondro/kelondroTree.java@@ -152,7 +152,16 @@ public class kelondroTree extends kelondroCachedRecords implements kelondroIndex}public boolean has(final byte[] key) {- throw new UnsupportedOperationException("has should not be used with kelondroTree.");+ boolean result;+ synchronized (writeSearchObj) {+ try {+ writeSearchObj.process(key);+ result = writeSearchObj.found();+ } catch (final IOException e) {+ result = false;+ }+ }+ return result;}// Returns the value to which this map maps the specified key.