mirror of https://github.com/apache/cassandra
Work around netty offheap capacity check bug
patch by tjake; reviewed by Mikhail Stepura for CASSANDRA-7196
This commit is contained in:
parent
65a46265df
commit
e3dd88a8cd
|
|
@ -330,8 +330,11 @@ public abstract class CBUtil
|
|||
return;
|
||||
}
|
||||
|
||||
cb.writeInt(bytes.remaining());
|
||||
cb.writeBytes(bytes.duplicate());
|
||||
int remaining = bytes.remaining();
|
||||
cb.writeInt(remaining);
|
||||
|
||||
if (remaining > 0)
|
||||
cb.writeBytes(bytes.duplicate());
|
||||
}
|
||||
|
||||
public static int sizeOfValue(byte[] bytes)
|
||||
|
|
|
|||
Loading…
Reference in New Issue