HBASE-16541 Avoid unnecessary cell copy in Result#compareResults (ChiaPing Tsai)
This commit is contained in:
parent
91227f8f98
commit
ab07f0087b
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue