Skip to content

Commit

Permalink
Fix HSHA/offheap_objects corruption
Browse files Browse the repository at this point in the history
patch by benedict; reviewed by marcus for CASSANDRA-8719
  • Loading branch information
belliottsmith authored and iamaleksey committed Feb 11, 2015
1 parent fd6f9c6 commit 7cc1cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/java/org/apache/cassandra/utils/memory/MemoryUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public static void setBytes(long address, ByteBuffer buffer)
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);
}

/**
Expand Down

0 comments on commit 7cc1cf0

Please sign in to comment.