Repository navigation
fix(cache): release query runner on error in storeInCache - #12545
Conversation
When storeInCache creates an internal master query runner (slave or undefined caller), a throwing execute() left the pooled connection unreleased. Wrap the execute block in try/finally so release always runs on the internally-created runner.
Code Review by Qodo
1. Release masks execute error
|
gioboa
left a comment
There was a problem hiding this comment.
Thanks @francisjohnjohnston-web 🙏
commit: |
When storeInCache creates an internal master query runner (slave or undefined caller), a throwing execute() left the pooled connection unreleased. Wrap the execute block in try/finally so release always runs on the internally-created runner.
Description of change
Pull-Request Checklist
masterbranchFixes #00000tests/**.test.ts)docs/docs/**.md)