Always trim chunk GET in ChunkHolder

- Possibly something to do with #1169
This commit is contained in:
dordsor21 2021-07-29 20:37:10 +01:00
parent 84b9dce6be
commit d62a1b5ad3
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -862,6 +862,8 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
@Override
public synchronized boolean trim(boolean aggressive) {
// always trim GET. It could be cached elsewhere.
chunkExisting.trim(aggressive);
if (chunkSet != null) {
final boolean result = chunkSet.trim(aggressive);
if (result) {
@ -878,8 +880,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
} else if (delegate == GET) {
delegate = NULL;
}
} else {
chunkExisting.trim(false);
}
return false;
}