forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit113d359
committed
Fix segmentation fault that commitac22929 caused.
Commitac22929 changed recoveryWakeupLatch so that it's reset toNULL at the end of recovery. This change could cause a segmentation faultin the buildfarm member 'elver'.Previously the latch was reset to NULL after calling ShutdownWalRcv().But there could be a window between ShutdownWalRcv() and the actualexit of walreceiver. If walreceiver set the latch during that window,the segmentation fault could happen.To fix the issue, this commit changes walreceiver so that it setsthe latch only when the latch has not been reset to NULL yet.Author: Fujii MasaoDiscussion:https://postgr.es/m/5c1f8a85-747c-7bf9-241e-dd467d8a3586@iki.fi1 parent560564d commit113d359
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12673 | 12673 |
| |
12674 | 12674 |
| |
12675 | 12675 |
| |
12676 |
| - | |
| 12676 | + | |
| 12677 | + | |
12677 | 12678 |
| |
12678 | 12679 |
| |
12679 | 12680 |
| |
|
0 commit comments
Comments
(0)