Author: stack
Date: Tue Feb 14 19:02:13 2012
New Revision: 1244169
URL: http://svn.apache.org/viewvc?rev=1244169&view=rev
Log:
HBASE-5398 HBase shell disable_all/enable_all/drop_all promp wrong tables for
confirmation
Modified:
hbase/trunk/src/main/ruby/shell/commands/disable_all.rb
hbase/trunk/src/main/ruby/shell/commands/drop_all.rb
hbase/trunk/src/main/ruby/shell/commands/enable_all.rb
Modified: hbase/trunk/src/main/ruby/shell/commands/disable_all.rb
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/commands/disable_all.rb?rev=1244169&r1=1244168&r2=1244169&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/shell/commands/disable_all.rb (original)
+++ hbase/trunk/src/main/ruby/shell/commands/disable_all.rb Tue Feb 14 19:02:13
2012
@@ -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|
Modified: hbase/trunk/src/main/ruby/shell/commands/drop_all.rb
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/commands/drop_all.rb?rev=1244169&r1=1244168&r2=1244169&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/shell/commands/drop_all.rb (original)
+++ hbase/trunk/src/main/ruby/shell/commands/drop_all.rb Tue Feb 14 19:02:13
2012
@@ -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|
Modified: hbase/trunk/src/main/ruby/shell/commands/enable_all.rb
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/commands/enable_all.rb?rev=1244169&r1=1244168&r2=1244169&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/shell/commands/enable_all.rb (original)
+++ hbase/trunk/src/main/ruby/shell/commands/enable_all.rb Tue Feb 14 19:02:13
2012
@@ -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|