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
pull/1/head
orbiter 19 years ago
parent 5d4f144f3f
commit 02f9765013

@ -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();}

Loading…
Cancel
Save