forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit77d2197
committed
Fix connection leak in DROP SUBSCRIPTION command, take 2.
Commit898a792 fixed the connectionleak issue, but it was an unreliable way of bugfix. This bugfix wasassuming that walrcv_command() subroutine cannot throw an error,but it's untenable assumption. For example, if it will be changedso that an error is thrown, connection leak issue will happen again.This patch ensures that the connection is closed even whenwalrcv_command() subroutine throws an error.Patch by me, reviewed by Petr Jelinek and Michael PaquierDiscussion:https://www.postgresql.org/message-id/2058.1487704345@sss.pgh.pa.us1 parent044d9ef commit77d2197
1 file changed
+15
-9
lines changedLines changed: 15 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 |
| - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
569 | 581 |
| |
570 | 582 |
| |
571 | 583 |
| |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
| 584 | + | |
576 | 585 |
| |
577 |
| - | |
578 |
| - | |
579 |
| - | |
580 |
| - | |
| 586 | + | |
581 | 587 |
| |
582 | 588 |
| |
583 | 589 |
| |
|
0 commit comments
Comments
(0)