Author: stack
Date: Tue Feb 14 19:03:20 2012
New Revision: 1244171

URL: http://svn.apache.org/viewvc?rev=1244171&view=rev
Log:
HBASE-5398 HBase shell disable_all/enable_all/drop_all promp wrong tables for 
confirmation

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/main/ruby/shell/commands/disable_all.rb
    hbase/branches/0.92/src/main/ruby/shell/commands/drop_all.rb
    hbase/branches/0.92/src/main/ruby/shell/commands/enable_all.rb

Modified: hbase/branches/0.92/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1244171&r1=1244170&r2=1244171&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Tue Feb 14 19:03:20 2012
@@ -18,6 +18,8 @@ Release 0.92.1 - Unreleased
    HBASE-5288  Security source code dirs missing from 0.92.0 release tarballs
    HBASE-5364  Fix source files missing licenses in 0.92 and trunk
    HBASE-5363  Automatically run rat check on mvn release builds
+   HBASE-5398  HBase shell disable_all/enable_all/drop_all promp wrong tables
+               for confirmation (Jimmy Xiang)
 
   IMPROVEMENTS
    HBASE-5197  [replication] Handle socket timeouts in ReplicationSource

Modified: hbase/branches/0.92/src/main/ruby/shell/commands/disable_all.rb
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/ruby/shell/commands/disable_all.rb?rev=1244171&r1=1244170&r2=1244171&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/ruby/shell/commands/disable_all.rb (original)
+++ hbase/branches/0.92/src/main/ruby/shell/commands/disable_all.rb Tue Feb 14 
19:03:20 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/branches/0.92/src/main/ruby/shell/commands/drop_all.rb
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/ruby/shell/commands/drop_all.rb?rev=1244171&r1=1244170&r2=1244171&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/ruby/shell/commands/drop_all.rb (original)
+++ hbase/branches/0.92/src/main/ruby/shell/commands/drop_all.rb Tue Feb 14 
19:03:20 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/branches/0.92/src/main/ruby/shell/commands/enable_all.rb
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/ruby/shell/commands/enable_all.rb?rev=1244171&r1=1244170&r2=1244171&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/ruby/shell/commands/enable_all.rb (original)
+++ hbase/branches/0.92/src/main/ruby/shell/commands/enable_all.rb Tue Feb 14 
19:03:20 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|


Reply via email to