HBASE-6257 Avoid unnecessary flush & compact on Meta in admin.rb
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1379220 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1da663d1e3
commit
652851af72
|
@ -162,8 +162,6 @@ module Hbase
|
|||
raise ArgumentError, "Table #{table_name} is enabled. Disable it first.'" if enabled?(table_name)
|
||||
|
||||
@admin.deleteTable(table_name)
|
||||
flush(org.apache.hadoop.hbase.HConstants::META_TABLE_NAME)
|
||||
major_compact(org.apache.hadoop.hbase.HConstants::META_TABLE_NAME)
|
||||
end
|
||||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
|
@ -171,8 +169,6 @@ module Hbase
|
|||
def drop_all(regex)
|
||||
regex = regex.to_s
|
||||
failed = @admin.deleteTables(regex).map { |t| t.getNameAsString }
|
||||
flush(org.apache.hadoop.hbase.HConstants::META_TABLE_NAME)
|
||||
major_compact(org.apache.hadoop.hbase.HConstants::META_TABLE_NAME)
|
||||
return failed
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue