From caf2c0c67a3bd22eccf2d6db69f7c0667185851f Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 14 Feb 2012 19:02:13 +0000 Subject: [PATCH] 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 --- src/main/ruby/shell/commands/disable_all.rb | 2 +- src/main/ruby/shell/commands/drop_all.rb | 2 +- src/main/ruby/shell/commands/enable_all.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/ruby/shell/commands/disable_all.rb b/src/main/ruby/shell/commands/disable_all.rb index 4f18d8248fe..b7c9cf5fdd9 100644 --- a/src/main/ruby/shell/commands/disable_all.rb +++ b/src/main/ruby/shell/commands/disable_all.rb @@ -30,7 +30,7 @@ EOF end def command(regex) - regex = /#{regex}/ unless regex.is_a?(Regexp) + regex = /^#{regex}$/ unless regex.is_a?(Regexp) list = admin.list.grep(regex) count = list.size list.each do |table| diff --git a/src/main/ruby/shell/commands/drop_all.rb b/src/main/ruby/shell/commands/drop_all.rb index b76149e6cd0..dcbefa32346 100644 --- a/src/main/ruby/shell/commands/drop_all.rb +++ b/src/main/ruby/shell/commands/drop_all.rb @@ -30,7 +30,7 @@ EOF end def command(regex) - regex = /#{regex}/ unless regex.is_a?(Regexp) + regex = /^#{regex}$/ unless regex.is_a?(Regexp) list = admin.list.grep(regex) count = list.size list.each do |table| diff --git a/src/main/ruby/shell/commands/enable_all.rb b/src/main/ruby/shell/commands/enable_all.rb index a35eb665a1f..ee016373f47 100644 --- a/src/main/ruby/shell/commands/enable_all.rb +++ b/src/main/ruby/shell/commands/enable_all.rb @@ -30,7 +30,7 @@ EOF end def command(regex) - regex = /#{regex}/ unless regex.is_a?(Regexp) + regex = /^#{regex}$/ unless regex.is_a?(Regexp) list = admin.list.grep(regex) count = list.size list.each do |table|