From 9607409fca41edf9484876ddff8bbd6ee9becae5 Mon Sep 17 00:00:00 2001 From: zhangduo Date: Fri, 28 Oct 2016 21:39:54 +0800 Subject: [PATCH] HBASE-16932 addendum fix incorrect System.arraycopy --- .../src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java index fe9b243..729f874 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java @@ -252,7 +252,7 @@ public final class ConnectionUtils { byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length]; System.arraycopy(row, 0, nextRow, 0, row.length - 1); nextRow[row.length - 1] = (byte) ((row[row.length - 1] & 0xFF) - 1); - System.arraycopy(nextRow, row.length, MAX_BYTE_ARRAY, 0, MAX_BYTE_ARRAY.length); + System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length); return nextRow; } } -- 1.9.1