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:
parent
5f2512facd
commit
e4e9eb4f9e
|
@ -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
|
||||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue