NettyDataBufferFactory.wrap(ByteBuf) calls touch()

Closes gh-21960
This commit is contained in:
Rossen Stoyanchev 2019-03-29 15:25:28 -04:00
parent 57d006b3ff
commit 9a1bba5b67
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}