thangTang commented on a change in pull request #1823:
URL: https://github.com/apache/hbase/pull/1823#discussion_r433996497
##########
File path:
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ByteBufferArray.java
##########
@@ -102,8 +170,8 @@ public int getMultiple(long start, int len, byte[]
dstArray, int dstOffset) {
private final static Visitor GET_MULTIPLE_VISTOR = new Visitor() {
@Override
- public void visit(ByteBuffer bb, byte[] array, int arrayIdx, int len) {
- bb.get(array, arrayIdx, len);
+ public void visit(ByteBuffer bb, int pos, byte[] array, int arrayIdx, int
len) {
+ ByteBufferUtils.copyFromBufferToArray(array, bb, pos, arrayIdx, len);
Review comment:
> Why change this? Seems this not belong to HBASE-17738?
Also removed some Unnecessary locks related to
[HBASE-15785](https://issues.apache.org/jira/browse/HBASE-15785)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]