Set correct capacity in DefaultDataBuffer::setNativeBuffer

Closes gh-30984
This commit is contained in:
Arjen Poutsma
2024-02-20 12:36:55 +01:00
parent ceb7afdca2
commit c077805761

View File

@@ -94,7 +94,7 @@ public class DefaultDataBuffer implements DataBuffer {
private void setNativeBuffer(ByteBuffer byteBuffer) {
this.byteBuffer = byteBuffer;
this.capacity = byteBuffer.remaining();
this.capacity = byteBuffer.capacity();
}