Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
reverted a part of svn6636: - didn't work on blobs >2GB - should be obsolete since svn6651 http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2652&sid=7fa98fd3edfc2a03f26394d545e3e3c1&p=19172#p19172
sixcooler787b588c336d
diff --git a/source/net/yacy/kelondro/blob/HeapReader.java b/source/net/yacy/kelondro/blob/HeapReader.javaindex 974d6bada..93115c3a1 100644--- a/source/net/yacy/kelondro/blob/HeapReader.java+++ b/source/net/yacy/kelondro/blob/HeapReader.java@@ -589,10 +589,10 @@ public class HeapReader {// so far we have read this.keylen - 1 + 1 = this.keylen bytes.// there must be a remaining number of len - this.keylen bytes left for the BLOBif (len < this.keylen) return null; // a strange case that can only happen in case of corrupted data- if (is.available() < (len - this.keylen)) { // this really indicates corrupted data- Log.logWarning("HeapReader", "corrupted data by entry of " + len + " bytes at available of: " + is.available() + " in " + this.blobFile.getName());- return null;- }+// if (is.available() < (len - this.keylen)) { // this really indicates corrupted data but doesn't work for >2GB Blobs+// Log.logWarning("HeapReader", "corrupted data by entry of " + len + " bytes at available of: " + is.available() + " in " + this.blobFile.getName());+// return null;+// }payload = new byte[len - this.keylen]; // the remaining record entriesif (is.read(payload) < payload.length) return null;return new entry(key, payload);