Repository: hbase
Updated Branches:
  refs/heads/branch-1 abbb36f62 -> a0e52a2da


HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a0e52a2d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a0e52a2d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a0e52a2d

Branch: refs/heads/branch-1
Commit: a0e52a2dabbd56a5126a1b981a5749bfeb89980e
Parents: abbb36f
Author: tedyu <yuzhih...@gmail.com>
Authored: Sun Sep 4 07:08:38 2016 -0700
Committer: tedyu <yuzhih...@gmail.com>
Committed: Sun Sep 4 07:08:38 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/client/Result.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a0e52a2d/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
----------------------------------------------------------------------
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
index 3e645b0..3074d3e 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
@@ -847,7 +847,7 @@ public class Result implements CellScannable, CellScanner {
     Cell[] replicatedKVs = res2.rawCells();
     for (int i = 0; i < res1.size(); i++) {
       if (!ourKVs[i].equals(replicatedKVs[i]) ||
-          !Bytes.equals(CellUtil.cloneValue(ourKVs[i]), 
CellUtil.cloneValue(replicatedKVs[i]))) {
+          !CellUtil.matchingValue(ourKVs[i], replicatedKVs[i])) {
         throw new Exception("This result was different: "
             + res1.toString() + " compared to " + res2.toString());
       }

Reply via email to