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