HBASE-18986 Remove unnecessary null check after CellUtil.cloneQualifier()

Signed-off-by: Jerry He <jerryjch@apache.org>
This commit is contained in:
Xiang Li 2017-10-11 20:55:27 +08:00 committed by Jerry He
parent e04b15c685
commit aeaf222e35
1 changed files with 0 additions and 1 deletions

View File

@ -2956,7 +2956,6 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
// This is expensive. // This is expensive.
if (cell.getTimestamp() == HConstants.LATEST_TIMESTAMP && CellUtil.isDeleteType(cell)) { if (cell.getTimestamp() == HConstants.LATEST_TIMESTAMP && CellUtil.isDeleteType(cell)) {
byte[] qual = CellUtil.cloneQualifier(cell); byte[] qual = CellUtil.cloneQualifier(cell);
if (qual == null) qual = HConstants.EMPTY_BYTE_ARRAY;
Integer count = kvCount.get(qual); Integer count = kvCount.get(qual);
if (count == null) { if (count == null) {