forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit59d1e2b
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 parent1804284 commit59d1e2b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4717 | 4717 | | |
4718 | 4718 | | |
4719 | 4719 | | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
4720 | 4723 | | |
4721 | 4724 | | |
4722 | 4725 | | |
| |||
0 commit comments
Comments
(0)