forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3decdc
committed
Cancel CV sleep during subtransaction abort.
Generally, error recovery paths that need to do things likeLWLockReleaseAll and pgstat_report_wait_end also need to callConditionVariableCancelSleep, but AbortSubTransaction was missed.Since subtransaction abort might destroy up the DSM segment thatcontains the ConditionVariable stored in cv_sleep_target, thiscan result in a crash for anything using condition variables.Reported and diagnosed by Andres Freund.Discussion:http://postgr.es/m/20171221110048.rxk6464azzl5t2fi@alap3.anarazel.de1 parent7be0d77 commitf3decdc
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4596 | 4596 |
| |
4597 | 4597 |
| |
4598 | 4598 |
| |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
4599 | 4602 |
| |
4600 | 4603 |
| |
4601 | 4604 |
| |
|
0 commit comments
Comments
(0)