HBASE-3904 info.getTableName() should be used to get table name

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1145905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2011-07-13 08:33:42 +00:00
parent 148627fe9c
commit 1add4cc5d2
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ public class HBaseAdmin implements Abortable, Closeable {
HRegionInfo info = Writables.getHRegionInfo(
rowResult.getValue(HConstants.CATALOG_FAMILY,
HConstants.REGIONINFO_QUALIFIER));
if (!(Bytes.equals(info.getTableDesc().getName(), desc.getName()))) {
if (!(Bytes.equals(info.getTableName(), desc.getName()))) {
return false;
}
String hostAndPort = null;