We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7627589 + 6218aef commit d672910Copy full SHA for d672910
ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
@@ -250,6 +250,7 @@ void closeConnectionFully(boolean logErrors) {
250
Log.error("Error checking if connection [" + name + "] is closed", ex);
251
}
252
253
+ lock.lock();
254
try {
255
for (ExtendedPreparedStatement ps : pstmtCache.values()) {
256
ps.closeDestroy();
@@ -258,6 +259,8 @@ void closeConnectionFully(boolean logErrors) {
258
259
if (logErrors) {
260
Log.warn("Error when closing connection Statements", ex);
261
262
+ } finally {
263
+ lock.unlock();
264
265
266
// DB2 (and some other DBMS) may have uncommitted changes and do not allow close
0 commit comments