Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) undoing last commit because of problems with getUpdateTime

theli214302284e25
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);
}