Ninja fix for CASSANDRA-7245

This commit is contained in:
Jake Luciani 2014-05-29 09:13:23 -04:00
parent ef41567fa0
commit 969a92804d
1 changed files with 1 additions and 5 deletions

View File

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