patch for corrupted database files (just work on and forget key)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7177 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 97ee278931
commit 09c208a3ab

@ -410,6 +410,7 @@ public class HeapReader {
// database file may be corrupted and should be deleted :-((
Log.logSevere("HeapReader", "file " + file.file() + " corrupted at " + pos + ": negative len. len = " + len + ", pk.len = " + index.row().primaryKeyLength);
// to get lazy over that problem (who wants to tell the user to stop operation and delete the file???) we work on like the entry does not exist
index.remove(key);
return null;
}
if (MemoryControl.available() < len * 2 + keepFreeMem) {

Loading…
Cancel
Save