Skip to content

Commit

Permalink
fix issues:#5620
Browse files Browse the repository at this point in the history
  • Loading branch information
xuziyang authored and lizongbo committed Dec 17, 2023
1 parent ddfecb8 commit 65797bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ public void shrink(boolean checkTime, boolean keepAlive) {
final long currentTimeMillis = System.currentTimeMillis();
int size = connections.size();
for (int i = 0; i < size; ++i) {
DruidConnectionHolder connection = connections.pollLast();
DruidConnectionHolder connection = connections.pollFirst();

if ((onFatalError || fatalErrorIncrement > 0) && (lastFatalErrorTimeMillis
> connection.connectTimeMillis)) {
Expand Down

0 comments on commit 65797bc

Please sign in to comment.