forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc1d6ee8
committed
Fix bogus coding in WaitForBackgroundWorkerShutdown().
Some conditions resulted in "return" directly out of a PG_TRY block,which left the exception stack dangling, and to add insult to injuryfailed to restore the state of set_latch_on_sigusr1.This is a bug only in 9.5; in HEAD it was accidentally fixed by commitdb0f6ca, which removed the surrounding PG_TRY block. However, I (tgl)chose to apply the patch to HEAD as well, because the old coding wasgratuitously different from WaitForBackgroundWorkerStartup(), and therewould indeed have been no bug if it were done like that to start with.Dmitry IvanovDiscussion: <1637882.WfYN5gPf1A@abook>1 parent4c27511 commitc1d6ee8
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1025 | 1025 |
| |
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 |
| - | |
| 1028 | + | |
1029 | 1029 |
| |
1030 | 1030 |
| |
1031 | 1031 |
| |
1032 | 1032 |
| |
1033 | 1033 |
| |
1034 |
| - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1035 | 1038 |
| |
1036 | 1039 |
| |
1037 | 1040 |
| |
|
0 commit comments
Comments
(0)