fix missing usage of the new _direct field in ByteBufferAccumulator

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-12-02 00:07:38 +11:00
parent 6dce1cbffd
commit 8aedc50048
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class ByteBufferAccumulator implements AutoCloseable
ByteBuffer buffer = _buffers.isEmpty() ? BufferUtil.EMPTY_BUFFER : _buffers.get(_buffers.size() - 1);
if (BufferUtil.space(buffer) < minSize)
{
buffer = _bufferPool.acquire(minAllocationSize, false);
buffer = _bufferPool.acquire(minAllocationSize, _direct);
_buffers.add(buffer);
}