forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit733fa9a
committed
Allow WaitLatch() to be used without a latch.
Due to flaws in commit3347c98, using WaitLatch() withoutWL_LATCH_SET could cause an assertion failure or crash. Repair.While here, also add a check that the latch we're switching to belongsto this backend, when changing from one latch to another.Discussion:https://postgr.es/m/CA%2BhUKGK1607VmtrDUHQXrsooU%3Dap4g4R2yaoByWOOA3m8xevUQ%40mail.gmail.com1 parent2e3c194 commit733fa9a
1 file changed
+19
-4
lines changedLines changed: 19 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
| 927 | + | |
| 928 | + | |
927 | 929 |
| |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
928 | 943 |
| |
929 | 944 |
| |
930 | 945 |
| |
| |||
1386 | 1401 |
| |
1387 | 1402 |
| |
1388 | 1403 |
| |
1389 |
| - | |
| 1404 | + | |
1390 | 1405 |
| |
1391 | 1406 |
| |
1392 | 1407 |
| |
| |||
1536 | 1551 |
| |
1537 | 1552 |
| |
1538 | 1553 |
| |
1539 |
| - | |
| 1554 | + | |
1540 | 1555 |
| |
1541 | 1556 |
| |
1542 | 1557 |
| |
| |||
1645 | 1660 |
| |
1646 | 1661 |
| |
1647 | 1662 |
| |
1648 |
| - | |
| 1663 | + | |
1649 | 1664 |
| |
1650 | 1665 |
| |
1651 | 1666 |
| |
| |||
1812 | 1827 |
| |
1813 | 1828 |
| |
1814 | 1829 |
| |
1815 |
| - | |
| 1830 | + | |
1816 | 1831 |
| |
1817 | 1832 |
| |
1818 | 1833 |
| |
|
0 commit comments
Comments
(0)