From 214302284e25f04ea1e7b343eadacb5dcf7efc21 Mon Sep 17 00:00:00 2001 From: theli Date: Thu, 2 Feb 2006 10:05:16 +0000 Subject: [PATCH] *) 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 --- source/de/anomic/plasma/plasmaWordIndexCache.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.java index cefce6443..56d048e0c 100644 --- a/source/de/anomic/plasma/plasmaWordIndexCache.java +++ b/source/de/anomic/plasma/plasmaWordIndexCache.java @@ -364,11 +364,13 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface { plasmaWordIndexEntryContainer container = null; long time; synchronized (cache) { - // get the container and remove it from the cache - container = (plasmaWordIndexEntryContainer) this.cache.remove(key); + // get the container + container = (plasmaWordIndexEntryContainer) this.cache.get(key); if (container == null) return 0; // flushing of nonexisting key time = getUpdateTime(key); + // remove it from the cache + cache.remove(key); hashScore.deleteScore(key); hashDate.deleteScore(key); }