Only release the connection if we didn't report it as failed.
This commit is contained in:
@@ -570,9 +570,11 @@ public class PersistenceContext
|
||||
}
|
||||
|
||||
} finally {
|
||||
if (conn != null) {
|
||||
_conprov.releaseConnection(_ident, isReadOnly, conn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if we got here, we want to retry a transient failure
|
||||
return invoke(op, false);
|
||||
|
||||
Reference in New Issue
Block a user