Set the correct delegate to the ChunkHolder when using get or set in NULL delegate (#1830)

This commit is contained in:
Jordan 2022-06-21 12:55:51 +01:00 committed by GitHub
parent fe90142f1f
commit 3f103eea9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,14 +744,14 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
@Override @Override
public IChunkGet get(ChunkHolder chunk) { public IChunkGet get(ChunkHolder chunk) {
chunk.getOrCreateGet(); chunk.getOrCreateGet();
chunk.delegate = BOTH; chunk.delegate = GET;
return chunk.chunkExisting; return chunk.chunkExisting;
} }
@Override @Override
public IChunkSet set(ChunkHolder chunk) { public IChunkSet set(ChunkHolder chunk) {
chunk.getOrCreateSet(); chunk.getOrCreateSet();
chunk.delegate = BOTH; chunk.delegate = SET;
return chunk.chunkSet; return chunk.chunkSet;
} }