diff --git a/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java b/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java index 1da685b23a6..8c44fde3a2d 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java +++ b/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java @@ -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;