Commit e6b4a00d authored by mhellka's avatar mhellka
Browse files

Make NioPool.trimObject() more aggressive by default

parent 971ccfab
Pipeline #133785 passed with stage
in 4 minutes and 39 seconds
......@@ -16,7 +16,6 @@ import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.StandardOpenOption;
import java.nio.file.attribute.BasicFileAttributes;
import java.time.Duration;
import java.time.Instant;
import java.util.Date;
import java.util.concurrent.ConcurrentHashMap;
......@@ -264,7 +263,7 @@ public class NioPool implements StoragePool {
public long trimObject(String objectId) throws NotFound {
Instant keepNewerThan =;
Instant keepNewerThan =;
for (final NioSession s : scopes.values()) {
if (keepNewerThan.isAfter(s.tx.getStarted()))
keepNewerThan = s.tx.getStarted().minusSeconds(10);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment