Skip to content

Commit 0726429

Browse files
author
chengyitian
committed
AJ-664: fix issue about DBConnection connectNode;
1 parent db951a7 commit 0726429

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,10 @@ public boolean connectNode(Node node) throws IOException{
918918
return conn_.connect(node.hostName, node.port, uid_, pwd_, connTimeout_);
919919
}catch (Exception e){
920920
if (isConnected()){
921-
ExceptionType type = parseException(e.getMessage(), node);
921+
Node tmpNode = new Node();
922+
tmpNode.hostName = node.hostName;
923+
tmpNode.port = node.port;
924+
ExceptionType type = parseException(e.getMessage(), tmpNode);
922925
if (type != ExceptionType.ET_NEWLEADER){
923926
if (type == ExceptionType.ET_IGNORE)
924927
return true;

0 commit comments

Comments
 (0)