Skip to content

Commit ad0f257

Browse files
committed
Removed "safety check" from the ConnectionPool for H2
1 parent e139c8a commit ad0f257

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/javaxt/sql/ConnectionPool.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -833,14 +833,6 @@ private void recycleConnection (PooledConnection pconn) {
833833
return;
834834
}
835835
}
836-
837-
// Additional safety check: verify the wrapper's connection is actually closed
838-
// If the javaxt.sql.Connection wrapper is still open, this indicates a problem
839-
if (wrapper.connection != null && wrapper.connection.isOpen()) {
840-
log("Warning: Recycle called but javaxt.sql.Connection wrapper is still open - disposing instead");
841-
disposeConnection(pconn);
842-
return;
843-
}
844836
}
845837

846838
// Use atomic decrement to avoid TOCTOU race condition

0 commit comments

Comments
 (0)