HBASE-3313 Table name isn't checked in isTableEnabled/isTableDisabled
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1081431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afbbbef1ce
commit
36c3025c97
|
@ -66,6 +66,8 @@ Release 0.91.0 - Unreleased
|
|||
not exit
|
||||
HBASE-3626 Update instructions in thrift demo files (Moaz Reyad via Stack)
|
||||
HBASE-3538 Column families allow to have slashes in name (Ian Knome via Stack)
|
||||
HBASE-3313 Table name isn't checked in isTableEnabled/isTableDisabled
|
||||
(Ted Yu via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
|
|
@ -590,6 +590,7 @@ public class HBaseAdmin implements Abortable {
|
|||
* @throws IOException if a remote or network exception occurs
|
||||
*/
|
||||
public boolean isTableEnabled(byte[] tableName) throws IOException {
|
||||
HTableDescriptor.isLegalTableName(tableName);
|
||||
return connection.isTableEnabled(tableName);
|
||||
}
|
||||
|
||||
|
@ -608,6 +609,7 @@ public class HBaseAdmin implements Abortable {
|
|||
* @throws IOException if a remote or network exception occurs
|
||||
*/
|
||||
public boolean isTableDisabled(byte[] tableName) throws IOException {
|
||||
HTableDescriptor.isLegalTableName(tableName);
|
||||
return connection.isTableDisabled(tableName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue