From 02f9765013c8f9e2a11a8005ab38694752f991a2 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sat, 11 Mar 2006 21:55:32 +0000 Subject: [PATCH] quickfix for time problem during cache restore see http://www.yacy-forum.de/viewtopic.php?p=18810#18810 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1878 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaWordIndexCache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.java index 96bf7fbd4..f85b1104e 100644 --- a/source/de/anomic/plasma/plasmaWordIndexCache.java +++ b/source/de/anomic/plasma/plasmaWordIndexCache.java @@ -167,7 +167,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface { synchronized (cache) { int i = dumpArray.size(); String wordHash; - long creationTime; + //long creationTime; plasmaWordIndexEntry wordEntry; byte[][] row; //Runtime rt = Runtime.getRuntime(); @@ -176,10 +176,10 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface { row = dumpArray.get(i); if ((row[0] == null) || (row[1] == null) || (row[2] == null) || (row[3] == null) || (row[4] == null)) continue; wordHash = new String(row[0], "UTF-8"); - creationTime = kelondroRecords.bytes2long(row[2]); + //creationTime = kelondroRecords.bytes2long(row[2]); wordEntry = new plasmaWordIndexEntry(new String(row[3], "UTF-8"), new String(row[4], "UTF-8")); // store to cache - addEntry(wordHash, wordEntry, creationTime); + addEntry(wordHash, wordEntry, startTime); urlCount++; // protect against memory shortage //while (rt.freeMemory() < 1000000) {flushFromMem(); java.lang.System.gc();}