HBASE-5398 HBase shell disable_all/enable_all/drop_all promp wrong tables for confirmation

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1244169 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-02-14 19:02:13 +00:00
parent ac0fb8d5ae
commit caf2c0c67a
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ EOF
end end
def command(regex) def command(regex)
regex = /#{regex}/ unless regex.is_a?(Regexp) regex = /^#{regex}$/ unless regex.is_a?(Regexp)
list = admin.list.grep(regex) list = admin.list.grep(regex)
count = list.size count = list.size
list.each do |table| list.each do |table|

View File

@ -30,7 +30,7 @@ EOF
end end
def command(regex) def command(regex)
regex = /#{regex}/ unless regex.is_a?(Regexp) regex = /^#{regex}$/ unless regex.is_a?(Regexp)
list = admin.list.grep(regex) list = admin.list.grep(regex)
count = list.size count = list.size
list.each do |table| list.each do |table|

View File

@ -30,7 +30,7 @@ EOF
end end
def command(regex) def command(regex)
regex = /#{regex}/ unless regex.is_a?(Regexp) regex = /^#{regex}$/ unless regex.is_a?(Regexp)
list = admin.list.grep(regex) list = admin.list.grep(regex)
count = list.size count = list.size
list.each do |table| list.each do |table|