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:51:59 UTC

[hbase] branch branch-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
in repository https://gitbox.apache.org/repos/asf/hbase.git


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

commit 362aba71ff8252107af4ea7cbf60ed822a6b90f6
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