Skip to content

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

*) Don't change maxTime if zero or negative

hermensca7407b7e196
diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.java
index 7666b27b0..060d6dacd 100644
--- a/source/de/anomic/plasma/plasmaWordIndexCache.java
+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java
@@ -380,7 +380,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
private boolean flushFromAssortmentCluster(String key, long maxTime) {
// this should only be called if the assortment shall be deleted or returned in an index entity
- maxTime = 8 * maxTime / 10; // reserve time for later adding to backend
+ if (maxTime > 0) maxTime = 8 * maxTime / 10; // reserve time for later adding to backend
plasmaWordIndexEntryContainer container = assortmentCluster.removeFromAll(key, maxTime);
if (container == null) {
return false;