Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

removed possible deadlock, see http://forum.yacy-websuche.de/viewtopic.php?p=17017#p17017

orbiter6354b5e44736
diff --git a/source/de/anomic/kelondro/text/MetadataRepository.java b/source/de/anomic/kelondro/text/MetadataRepository.java
index e0a6bc28e..33ffd8b0e 100644
--- a/source/de/anomic/kelondro/text/MetadataRepository.java
+++ b/source/de/anomic/kelondro/text/MetadataRepository.java
@@ -118,7 +118,8 @@ public final class MetadataRepository implements Iterable<byte[]> {
URLMetadataRow oldEntry;
try {
if (exists(entry.hash())) {
- oldEntry = load(entry.hash(), null, 0);
+ Row.Entry oe = urlIndexFile.get(entry.hash().getBytes());
+ oldEntry = (oe == null) ? null : new URLMetadataRow(oe, null, 0);
} else {
oldEntry = null;
}