zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shra...@apache.org
Subject svn commit: r1617921 - /zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java
Date Thu, 14 Aug 2014 12:33:19 GMT
Author: shralex
Date: Thu Aug 14 12:33:18 2014
New Revision: 1617921

URL: http://svn.apache.org/r1617921
Log:
ZOOKEEPER-2008-Fix. Correcting small issue in committed 2008 patch.

Modified:
    zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java

Modified: zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java?rev=1617921&r1=1617920&r2=1617921&view=diff
==============================================================================
--- zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java
(original)
+++ zookeeper/trunk/src/java/systest/org/apache/zookeeper/test/system/QuorumPeerInstance.java
Thu Aug 14 12:33:18 2014
@@ -166,8 +166,8 @@ class QuorumPeerInstance implements Inst
             peers = new HashMap<Long,QuorumServer>();
             for(int i = 0; i < parts.length; i++) {
                 // parts[i] == "host:leaderPort:leaderElectionPort;clientPort"
-                String subparts[] = (parts[i].split(";"))[0].split(":");
-		String clientPort = (parts[i].split(";"))[1];
+                String subparts[] = ((parts[i].split(";"))[0]).split(":");
+                String clientPort = (parts[i].split(";"))[1];
                 peers.put(Long.valueOf(i),
                           new QuorumServer(
                                 i,



Mime
View raw message