bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject bookkeeper git commit: BOOKKEEPER-921: Typo in LocalBookkeeper: Use InetAddress.getHostAddress instead of InetAddress
Date Wed, 27 Apr 2016 08:05:35 GMT
Repository: bookkeeper
Updated Branches:
  refs/heads/master dd575a16d -> 696a1515b


BOOKKEEPER-921: Typo in LocalBookkeeper: Use InetAddress.getHostAddress instead of InetAddress


Project: http://git-wip-us.apache.org/repos/asf/bookkeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/bookkeeper/commit/696a1515
Tree: http://git-wip-us.apache.org/repos/asf/bookkeeper/tree/696a1515
Diff: http://git-wip-us.apache.org/repos/asf/bookkeeper/diff/696a1515

Branch: refs/heads/master
Commit: 696a1515bcd4ef41ef27944dad64ac3e1c9d4991
Parents: dd575a1
Author: Arun M. Krishnakumar <arunmk95@gmail.com>
Authored: Wed Apr 27 01:05:23 2016 -0700
Committer: Sijie Guo <sijie@apache.org>
Committed: Wed Apr 27 01:05:23 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/696a1515/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
----------------------------------------------------------------------
diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
index 80e8c7a..125f084 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
@@ -107,7 +107,7 @@ public class LocalBookKeeper {
         //initialize the zk client with values
         try {
             zkc = ZooKeeperClient.newBuilder()
-                    .connectString(InetAddress.getLoopbackAddress() + ":" + ZooKeeperDefaultPort)
+                    .connectString(InetAddress.getLoopbackAddress().getHostAddress() + ":"
+ ZooKeeperDefaultPort)
                     .sessionTimeoutMs(zkSessionTimeOut)
                     .build();
             zkc.create("/ledgers", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);


Mime
View raw message