Only release the connection if we didn't report it as failed.

This commit is contained in:
Michael Bayne
2008-11-17 21:55:02 +00:00
parent 42aa622551
commit 566ebcf7f9
@@ -570,9 +570,11 @@ public class PersistenceContext
} }
} finally { } finally {
if (conn != null) {
_conprov.releaseConnection(_ident, isReadOnly, conn); _conprov.releaseConnection(_ident, isReadOnly, conn);
} }
} }
}
// if we got here, we want to retry a transient failure // if we got here, we want to retry a transient failure
return invoke(op, false); return invoke(op, false);