Fix HSHA/offheap_objects corruption

patch by benedict; reviewed by marcus for CASSANDRA-8719
This commit is contained in:
Benedict Elliott Smith 2015-02-11 11:21:12 +00:00 committed by Aleksey Yeschenko
parent fd6f9c6f9c
commit 7cc1cf000c
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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);
}
/**