Skip to content

Commit

Permalink
fix: minor fix on retrying next host from client
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Jan 15, 2024
1 parent b66e3cf commit e624889
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ public int getAvailableConnections(final String url) {
}

public int getReusableConnections(final String url) {
if (url == null) {
return 0;
}
final ORemoteConnectionPool pool = connections.get(url);
if (pool == null) return 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,9 @@ protected void openRemoteDatabase(String currentURL) {
}
} while (connectionManager.getReusableConnections(currentURL) > 0);

currentURL = useNewServerURL(currentURL);
if (currentURL != null) {
currentURL = useNewServerURL(currentURL);
}

} while (currentURL != null);

Expand Down

0 comments on commit e624889

Please sign in to comment.