thangTang commented on a change in pull request #1823:
URL: https://github.com/apache/hbase/pull/1823#discussion_r433999397



##########
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:
       Should i backport this patch first?




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


Reply via email to