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:
parent
30db4e8e6a
commit
9ebd88a002
|
@ -388,7 +388,7 @@ public class StoreScanner extends NonLazyKeyValueScanner
|
|||
byte[] row = peeked.getBuffer();
|
||||
int offset = peeked.getRowOffset();
|
||||
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)) {
|
||||
this.countPerRow = 0;
|
||||
matcher.setRow(row, offset, length);
|
||||
|
|
Loading…
Reference in New Issue