Commit d0c15a2
committed
fix: protect transaction rollback so mirror rollback is always reached
If transaction.rollback() throws, mirrorTransaction.rollback() was
never reached, leaking the mirror connection. Wrap both rollbacks in
independent try-catch blocks.1 parent 38db571 commit d0c15a2
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
| |||
0 commit comments