NettyDataBufferFactory.wrap(ByteBuf) calls touch()
Closes gh-21960
This commit is contained in:
@@ -90,6 +90,7 @@ public class NettyDataBufferFactory implements DataBufferFactory {
|
||||
* @return the wrapped buffer
|
||||
*/
|
||||
public NettyDataBuffer wrap(ByteBuf byteBuf) {
|
||||
byteBuf.touch();
|
||||
return new NettyDataBuffer(byteBuf, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user