*) Don't change maxTime if zero or negative

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1363 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
hermens 2006-01-17 14:47:21 +00:00
parent faca799f79
commit ca7407b7e1

View File

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