You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/11/04 01:33:56 UTC

svn commit: r1030780 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java

Author: stack
Date: Thu Nov  4 00:33:55 2010
New Revision: 1030780

URL: http://svn.apache.org/viewvc?rev=1030780&view=rev
Log:
Remove changes prematurely committed -- fixes that were for hbck tool and that broek the HBaseAdmin tests

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java?rev=1030780&r1=1030779&r2=1030780&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java Thu Nov  4 00:33:55 2010
@@ -96,8 +96,7 @@ public class MetaScanner {
     // if row is not null, we want to use the startKey of the row's region as
     // the startRow for the meta scan.
     byte[] startRow;
-    // row could be non-null but empty -- the HConstants.EMPTY_START_ROW
-    if (row != null && row.length > 0) {
+    if (row != null) {
       // Scan starting at a particular row in a particular table
       assert tableName != null;
       byte[] searchRow =
@@ -122,9 +121,7 @@ public class MetaScanner {
       byte[] rowBefore = regionInfo.getStartKey();
       startRow = HRegionInfo.createRegionName(tableName, rowBefore,
           HConstants.ZEROES, false);
-    } else if (row == null ||
-        (row != null && Bytes.equals(HConstants.EMPTY_START_ROW, row)) ||
-        (tableName == null || tableName.length == 0)) {
+    } else if (tableName == null || tableName.length == 0) {
       // Full META scan
       startRow = HConstants.EMPTY_START_ROW;
     } else {