From 91dca2cd8d07e3b913edbfceb1a22091127e5412 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 17 Mar 2006 13:07:34 +0000 Subject: [PATCH] fixed a bug in last commit: LURL entries cannot be written, because a stored property was not set to false (but true) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1906 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaCrawlLURL.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/plasma/plasmaCrawlLURL.java b/source/de/anomic/plasma/plasmaCrawlLURL.java index 929e759f6..ac1b2a0cd 100644 --- a/source/de/anomic/plasma/plasmaCrawlLURL.java +++ b/source/de/anomic/plasma/plasmaCrawlLURL.java @@ -410,7 +410,7 @@ public final class plasmaCrawlLURL extends plasmaURL { private int wordCount; private String snippet; private plasmaWordIndexEntry word; // this is only used if the url is transported via remote search requests - private boolean stored = false; + private boolean stored; // more needed attributes: // - author / copyright owner @@ -452,7 +452,6 @@ public final class plasmaCrawlLURL extends plasmaURL { this.urlHash = urlHash; byte[][] entry = plasmaCrawlLURL.this.urlHashCache.get(urlHash.getBytes()); if (entry == null) throw new IOException("url hash " + urlHash + " not found in LURL"); - this.stored = true; try { if (entry != null) { this.url = new URL(new String(entry[1], "UTF-8").trim()); @@ -469,6 +468,7 @@ public final class plasmaCrawlLURL extends plasmaURL { this.wordCount = (int) kelondroBase64Order.enhancedCoder.decodeLong(new String(entry[12], "UTF-8")); this.snippet = null; this.word = searchedWord; + this.stored = false; return; } } catch (Exception e) { @@ -566,6 +566,7 @@ public final class plasmaCrawlLURL extends plasmaURL { kelondroBase64Order.enhancedCoder.encodeLong(wordCount, urlWordCountLength).getBytes(), }; urlHashCache.put(entry); + serverLog.logFinest("PLASMA","STORED new LURL " + url.toString()); this.stored = true; } catch (Exception e) { serverLog.logSevere("PLASMA", "INTERNAL ERROR AT plasmaCrawlLURL:store:" + e.toString(), e);