git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7953 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 65ab067491
commit dd4635e323

@ -53,6 +53,7 @@ import net.yacy.cora.protocol.ResponseHeader;
import net.yacy.cora.protocol.http.HTTPClient; import net.yacy.cora.protocol.http.HTTPClient;
import net.yacy.cora.services.federated.yacy.CacheStrategy; import net.yacy.cora.services.federated.yacy.CacheStrategy;
import net.yacy.document.parser.html.ContentScraper; import net.yacy.document.parser.html.ContentScraper;
import net.yacy.kelondro.data.meta.DigestURI;
import net.yacy.kelondro.io.CharBuffer; import net.yacy.kelondro.io.CharBuffer;
import net.yacy.kelondro.logging.Log; import net.yacy.kelondro.logging.Log;
import net.yacy.kelondro.order.Base64Order; import net.yacy.kelondro.order.Base64Order;
@ -234,7 +235,9 @@ public final class yacyRelease extends yacyVersion {
// returns the version info if successful, null otherwise // returns the version info if successful, null otherwise
ContentScraper scraper; ContentScraper scraper;
try { try {
scraper = Switchboard.getSwitchboard().loader.parseResource(location.getLocationURL(), CacheStrategy.NOCACHE); final DigestURI uri = location.getLocationURL();
Thread.currentThread().setName("allReleaseFrom - host " + uri.getHost()); // makes it more easy to see which release blocks process in thread dump
scraper = Switchboard.getSwitchboard().loader.parseResource(uri, CacheStrategy.NOCACHE);
} catch (final IOException e) { } catch (final IOException e) {
return null; return null;
} }

@ -171,7 +171,13 @@ public final class Row {
public final Entry newEntry(final byte[] rowinstance, final int start, final boolean clone) { public final Entry newEntry(final byte[] rowinstance, final int start, final boolean clone) {
if (rowinstance == null) return null; if (rowinstance == null) return null;
//assert (rowinstance[0] != 0); //assert (rowinstance[0] != 0);
assert (this.objectOrder.wellformed(rowinstance, start, this.primaryKeyLength)) : "rowinstance = " + UTF8.String(rowinstance); final boolean wellformed = this.objectOrder.wellformed(rowinstance, start, this.primaryKeyLength);
try {
assert (wellformed) : "rowinstance = " + UTF8.String(rowinstance);
} catch (final Throwable e) {
Log.logException(e);
}
if (!wellformed) return null;
// this method offers the option to clone the content // this method offers the option to clone the content
// this is necessary if it is known that the underlying byte array may change and therefore // this is necessary if it is known that the underlying byte array may change and therefore
// the reference to the byte array does not contain the original content // the reference to the byte array does not contain the original content

Loading…
Cancel
Save