.setExtrasLength(extrasLength)
.setTotalBodyLength(extrasLength);
return request;
}
private static BinaryMemcacheRequest handleSubdocumentRequest(ChannelHandlerContext ctx, BinarySubdocRequest msg) {
<BUG>String key = msg.key();
short keyLength = (short) msg.keyBytes().length;
ByteBuf extras = ctx.alloc().buffer(3, 7); //extras can be 7 bytes if there is an expiry</BUG>
byte extrasLength = 3; //by default 2 bytes for pathLength + 1 byte for "command" flags
extras.writeShort(msg.pathLength());

.setExtrasLength(extrasLength)
.setTotalBodyLength(extrasLength);
return request;
}
private static BinaryMemcacheRequest handleSubdocumentRequest(ChannelHandlerContext ctx, BinarySubdocRequest msg) {
byte[] key = msg.keyBytes();
short keyLength = (short) key.length;
ByteBuf extras = ctx.alloc().buffer(3, 7); //extras can be 7 bytes if there is an expiry
byte extrasLength = 3; //by default 2 bytes for pathLength + 1 byte for "command" flags
extras.writeShort(msg.pathLength());
