Fix for RAMCache not flushing

see: http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1255



git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4940 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 17 years ago
parent 6b7e873962
commit d742cc080c

@ -281,8 +281,11 @@ public final class indexRAMRI implements indexRI, indexRIReader {
if (c > 0) {
// removal successful
if (heap.has(wordHash)) {
hashScore.decScore(wordHash);
hashScore.addScore(wordHash, -c);
hashDate.setScore(wordHash, intTime(System.currentTimeMillis()));
} else {
hashScore.deleteScore(wordHash);
hashDate.deleteScore(wordHash);
}
return c;
}

Loading…
Cancel
Save