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:
Michael Stack 2012-08-30 23:21:35 +00:00
parent 1da663d1e3
commit 652851af72
1 changed files with 0 additions and 4 deletions

View File

@ -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