From d865ef77a8e41512569ff2ab608644fcc91a3763 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 6 Sep 2010 09:55:04 +0000 Subject: [PATCH] removed re-read of index in case of a bad index. This may not solve the problem but it applies a 100% CPU problem on the peer. I'm afraid bad index files must be abandoned, and cannot be fixed this way. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7111 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/blob/HeapReader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.java index ef0d9592d..c21296270 100644 --- a/source/net/yacy/kelondro/blob/HeapReader.java +++ b/source/net/yacy/kelondro/blob/HeapReader.java @@ -414,11 +414,12 @@ public class HeapReader { file.readFully(keyf, 0, keyf.length); if (!this.ordering.equal(key, keyf)) { // verification of the indexed access failed. we must re-read the index - Log.logSevere("kelondroBLOBHeap", "verification indexed access for " + heapFile.toString() + " failed, re-building index"); + Log.logSevere("kelondroBLOBHeap", "indexed verification access failed for " + heapFile.toString()); // this is a severe operation, it should never happen. + return null; // but if the process ends in this state, it would completely fail // if the index is not rebuild now at once - initIndexReadFromHeap(); + //initIndexReadFromHeap(); } // read the blob