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