forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd43e3ad
committed
Tighten up application of parallel mode checks.
Commit924bcf4 failed to enforceparallel mode checks during the commit of a parallel worker, becausewe exited parallel mode prior to ending the transaction so that wecould pop the active snapshot. Re-establish parallel mode duringparallel worker commit. Without this, it's far too easy for unsafeactions during the pre-commit sequence to crash the server instead ofhitting the error checks as intended.Just to be extra paranoid, adjust a couple of the sanity checks inxact.c to check not only IsInParallelMode() but alsoIsParallelWorker().1 parentc451eaf commitd43e3ad
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| |||
1927 | 1927 | | |
1928 | 1928 | | |
1929 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
1930 | 1934 | | |
1931 | 1935 | | |
1932 | 1936 | | |
| |||
1971 | 1975 | | |
1972 | 1976 | | |
1973 | 1977 | | |
1974 | | - | |
1975 | 1978 | | |
1976 | | - | |
1977 | | - | |
1978 | 1979 | | |
1979 | 1980 | | |
1980 | 1981 | | |
| |||
2013 | 2014 | | |
2014 | 2015 | | |
2015 | 2016 | | |
| 2017 | + | |
2016 | 2018 | | |
2017 | 2019 | | |
2018 | 2020 | | |
| |||
0 commit comments
Comments
(0)