Skip to content

Commit ae61a35

Browse files
author
chengyitian
committed
AJ-771: when one connection manual connect multi times, clear all node for nodes_;
1 parent b895199 commit ae61a35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ public boolean connect(String hostName, int port, String userId, String password
954954
}
955955
} else {
956956
if (reconnect) {
957+
nodes_.clear();
957958
nodes_.add(new Node(hostName, port));
958959
switchDataNode(new Node(hostName, port));
959960
} else {

0 commit comments

Comments
 (0)