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 {
|
} 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user