hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1464286 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
Date Thu, 04 Apr 2013 04:37:17 GMT
Author: larsh
Date: Thu Apr  4 04:37:16 2013
New Revision: 1464286

URL: http://svn.apache.org/r1464286
Log:
HBASE-8188 Avoid unnecessary row compare in StoreScanner

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java?rev=1464286&r1=1464285&r2=1464286&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
Thu Apr  4 04:37:16 2013
@@ -343,7 +343,7 @@ public class StoreScanner extends NonLaz
     byte[] row = peeked.getBuffer();
     int offset = peeked.getRowOffset();
     short length = peeked.getRowLength();
-    if ((matcher.row == null) || !Bytes.equals(row, offset, length, matcher.row, matcher.rowOffset,
matcher.rowLength)) {
+    if (limit < 0 || matcher.row == null || !Bytes.equals(row, offset, length, matcher.row,
matcher.rowOffset, matcher.rowLength)) {
       matcher.setRow(row, offset, length);
     }
 



Mime
View raw message