HBASE-8188 Avoid unnecessary row compare in StoreScanner

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1464287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2013-04-04 04:37:35 +00:00
parent 30db4e8e6a
commit 9ebd88a002
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ public class StoreScanner extends NonLazyKeyValueScanner
byte[] row = peeked.getBuffer(); byte[] row = peeked.getBuffer();
int offset = peeked.getRowOffset(); int offset = peeked.getRowOffset();
short length = peeked.getRowLength(); short length = peeked.getRowLength();
if ((matcher.row == null) || !Bytes.equals(row, offset, length, matcher.row, if (limit < 0 || matcher.row == null || !Bytes.equals(row, offset, length, matcher.row,
matcher.rowOffset, matcher.rowLength)) { matcher.rowOffset, matcher.rowLength)) {
this.countPerRow = 0; this.countPerRow = 0;
matcher.setRow(row, offset, length); matcher.setRow(row, offset, length);