HBASE-3112 Enable and disable of table needs a bit of loving in new master

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1033241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-11-09 21:32:15 +00:00
parent 5f2512facd
commit e4e9eb4f9e
1 changed files with 2 additions and 2 deletions

View File

@ -76,14 +76,14 @@ module Hbase
# Enables a table
def enable(table_name)
return if enabled?(table_name)
@admin.enableTable(table_name)
@admin.enableTableAsync(table_name)
end
#----------------------------------------------------------------------------------------------
# Disables a table
def disable(table_name)
return unless enabled?(table_name)
@admin.disableTable(table_name)
@admin.disableTableAsync(table_name)
end
#----------------------------------------------------------------------------------------------