From 6354b5e44736994ddc264a8a6d96e79c6172f9a1 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 7 Aug 2009 12:04:14 +0000 Subject: [PATCH] removed possible deadlock, see http://forum.yacy-websuche.de/viewtopic.php?p=17017#p17017 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6251 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/text/MetadataRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { 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; }