HBASE-662 [shell] Cannot describe '.META.' or '-ROOT-' tables

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1378800 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-08-30 05:08:14 +00:00
parent c8f2cbc38d
commit 8e7185b507
1 changed files with 6 additions and 2 deletions

View File

@ -904,7 +904,9 @@ public class HBaseAdmin implements Abortable, Closeable {
* @throws IOException if a remote or network exception occurs
*/
public boolean isTableEnabled(byte[] tableName) throws IOException {
HTableDescriptor.isLegalTableName(tableName);
if (!HTableDescriptor.isMetaTable(tableName)) {
HTableDescriptor.isLegalTableName(tableName);
}
return connection.isTableEnabled(tableName);
}
@ -923,7 +925,9 @@ public class HBaseAdmin implements Abortable, Closeable {
* @throws IOException if a remote or network exception occurs
*/
public boolean isTableDisabled(byte[] tableName) throws IOException {
HTableDescriptor.isLegalTableName(tableName);
if (!HTableDescriptor.isMetaTable(tableName)) {
HTableDescriptor.isLegalTableName(tableName);
}
return connection.isTableDisabled(tableName);
}