[
https://issues.apache.org/jira/browse/CASSANDRA-15222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899414#comment-16899414
]
Benedict commented on CASSANDRA-15222:
--------------------------------------
There shouldn't be any need to touch {{Unsafe}} - just copingĀ {{public void
copy(ByteBuffer src, int srcPosition, byte[] trg, int trgPosition, int
length)}} but flipping the signature to {{public void copy(byte[] src, int
srcPosition, ByteBuffer trg, int trgPosition, int length)}} should be enough.
This only invokes non-{{Unsafe}} methods.
> BufferedDataOutputStreamPlus.write() should use FastByteOperations.copy()
> -------------------------------------------------------------------------
>
> Key: CASSANDRA-15222
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15222
> Project: Cassandra
> Issue Type: Improvement
> Components: Local/Compaction, Local/SSTable, Messaging/Internode
> Reporter: Benedict
> Assignee: Boris Tsirkin
> Priority: Normal
> Labels: pull-request-available
> Fix For: 4.0.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]