mirror of https://github.com/apache/cassandra
Ninja fix for CASSANDRA-7245
This commit is contained in:
parent
ef41567fa0
commit
969a92804d
|
|
@ -303,11 +303,7 @@ public abstract class CBUtil
|
|||
if (length < 0)
|
||||
return null;
|
||||
ByteBuf slice = cb.readSlice(length);
|
||||
if (slice.nioBufferCount() > 0)
|
||||
return slice.nioBuffer();
|
||||
else
|
||||
return ByteBuffer.wrap(readRawBytes(cb));
|
||||
|
||||
return ByteBuffer.wrap(readRawBytes(slice));
|
||||
}
|
||||
|
||||
public static void writeValue(byte[] bytes, ByteBuf cb)
|
||||
|
|
|
|||
Loading…
Reference in New Issue