mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) 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:
parent
faca799f79
commit
ca7407b7e1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user