mirror of https://github.com/apache/cassandra
Fix HSHA/offheap_objects corruption
patch by benedict; reviewed by marcus for CASSANDRA-8719
This commit is contained in:
parent
fd6f9c6f9c
commit
7cc1cf000c
|
|
@ -1,4 +1,5 @@
|
|||
2.1.3
|
||||
* Fix HSHA/offheap_objects corruption (CASSANDRA-8719)
|
||||
* Upgrade libthrift to 0.9.2 (CASSANDRA-8685)
|
||||
* Don't use the shared ref in sstableloader (CASSANDRA-8704)
|
||||
* Purge internal prepared statements if related tables or
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ public abstract class MemoryUtil
|
|||
if (buffer.isDirect())
|
||||
setBytes(unsafe.getLong(buffer, DIRECT_BYTE_BUFFER_ADDRESS_OFFSET) + start, address, count);
|
||||
else
|
||||
setBytes(address, buffer.array(), start, count);
|
||||
setBytes(address, buffer.array(), buffer.arrayOffset() + start, count);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue