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

This commit is contained in:
tedyu 2016-09-04 07:06:31 -07:00
parent 91227f8f98
commit ab07f0087b
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}