You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/12/11 17:45:12 UTC

[hbase] branch branch-2.2 updated: HBASE-23554 Encoded regionname to regionname utility (#923); ADDENDUM

This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new 2e651fb  HBASE-23554 Encoded regionname to regionname utility (#923); ADDENDUM
2e651fb is described below

commit 2e651fbc63748997b7d4293c8b08c5b3519e2e2b
Author: stack <st...@apache.org>
AuthorDate: Wed Dec 11 09:44:40 2019 -0800

    HBASE-23554 Encoded regionname to regionname utility (#923); ADDENDUM
---
 hbase-shell/src/main/ruby/shell/commands/regioninfo.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-shell/src/main/ruby/shell/commands/regioninfo.rb b/hbase-shell/src/main/ruby/shell/commands/regioninfo.rb
index c611705..725dd65 100644
--- a/hbase-shell/src/main/ruby/shell/commands/regioninfo.rb
+++ b/hbase-shell/src/main/ruby/shell/commands/regioninfo.rb
@@ -38,7 +38,7 @@ EOF
       def command(regionname)
         connection = org.apache.hadoop.hbase.client.ConnectionFactory.createConnection()
         admin = connection.getAdmin()
-        sn = servername != nil ? ServerName.valueOf(servername): admin.getMaster()
+        sn = admin.getMaster()
         puts org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.getRegionInfo(nil,
           connection.getAdmin(sn), regionname.to_java_bytes)
       end