Skip to content

Commit

Permalink
Fix regression cause by #1605. When returning the addConnectionExecut…
Browse files Browse the repository at this point in the history
…or pool sizes

back to defaults, the core pool size must be changed before the maximum pool size.
  • Loading branch information
brettwooldridge committed Feb 13, 2021
1 parent 5ac2a8b commit d0c7d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zaxxer/hikari/pool/HikariPool.java
Expand Up @@ -146,8 +146,8 @@ public HikariPool(final HikariConfig config)
quietlySleep(MILLISECONDS.toMillis(100));
}

addConnectionExecutor.setMaximumPoolSize(1);
addConnectionExecutor.setCorePoolSize(1);
addConnectionExecutor.setMaximumPoolSize(1);
}
}

Expand Down

0 comments on commit d0c7d54

Please sign in to comment.