*) undoing last commit because of problems with getUpdateTime

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1514 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 408de3beee
commit 214302284e

@ -364,11 +364,13 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
plasmaWordIndexEntryContainer container = null; plasmaWordIndexEntryContainer container = null;
long time; long time;
synchronized (cache) { synchronized (cache) {
// get the container and remove it from the cache // get the container
container = (plasmaWordIndexEntryContainer) this.cache.remove(key); container = (plasmaWordIndexEntryContainer) this.cache.get(key);
if (container == null) return 0; // flushing of nonexisting key if (container == null) return 0; // flushing of nonexisting key
time = getUpdateTime(key); time = getUpdateTime(key);
// remove it from the cache
cache.remove(key);
hashScore.deleteScore(key); hashScore.deleteScore(key);
hashDate.deleteScore(key); hashDate.deleteScore(key);
} }

Loading…
Cancel
Save