HBASE-793 HTable.getStartKeys() ignores table names when matching columns

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@682444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-08-04 17:27:29 +00:00
parent 4c86428312
commit e30059125f
2 changed files with 6 additions and 3 deletions

View File

@ -222,6 +222,8 @@ Release 0.2.0
HBASE-788 Div by zero in Master.jsp (Clint Morgan via Jim Kellerman)
HBASE-791 RowCount doesn't work (Jean-Daniel Cryans via Stack)
HBASE-751 dfs exception and regionserver stuck during heavy write load
HBASE-793 HTable.getStartKeys() ignores table names when matching columns
(Andrew Purtell and Dru Jensen via Stack)
IMPROVEMENTS
HBASE-559 MR example job to count table rows

View File

@ -262,10 +262,11 @@ public class HTable {
public boolean processRow(RowResult rowResult) throws IOException {
HRegionInfo info = Writables.getHRegionInfo(
rowResult.get(HConstants.COL_REGIONINFO));
if (Bytes.equals(info.getTableDesc().getName(), getTableName())) {
if (!(info.isOffline() || info.isSplit())) {
keyList.add(info.getStartKey());
}
}
return true;
}