You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2016/09/04 14:06:37 UTC

hbase git commit: HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)

Repository: hbase
Updated Branches:
  refs/heads/master 91227f8f9 -> ab07f0087


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/ab07f008
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ab07f008
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ab07f008

Branch: refs/heads/master
Commit: ab07f0087b8c5efcb1b084e42f4941ddb0c8885e
Parents: 91227f8
Author: tedyu <yu...@gmail.com>
Authored: Sun Sep 4 07:06:31 2016 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Sun Sep 4 07:06:31 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/ab07f008/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 c7393f6..f1e7cc4 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
@@ -773,7 +773,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());
       }