Commit dcfff74
committed
Restore lock level to update statusFlags
Reverts 2783898 (some comments are kept). Per discussion, it does
not seem safe to relax the lock level used for this; in order for it to
be safe, there would have to be memory barriers between the point we set
the flag and the point we set the trasaction Xid, which perhaps would
not be so bad; but there would also have to be barriers at the readers'
side, which from a performance perspective might be bad.
Now maybe this analysis is wrong and it *is* safe for some reason, but
proof of that is not trivial.
Discussion: https://postgr.es/m/20201118190928.vnztes7c2sldu43a@alap3.anarazel.de1 parent 9fbc3f3 commit dcfff74
File tree
4 files changed
+18
-18
lines changed- src
- backend
- commands
- replication/logical
- storage/ipc
- include/storage
4 files changed
+18
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1712 | 1712 | | |
1713 | 1713 | | |
1714 | 1714 | | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | 1715 | | |
1723 | 1716 | | |
1724 | 1717 | | |
| |||
1739 | 1732 | | |
1740 | 1733 | | |
1741 | 1734 | | |
1742 | | - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1743 | 1738 | | |
1744 | | - | |
| 1739 | + | |
1745 | 1740 | | |
1746 | 1741 | | |
1747 | 1742 | | |
1748 | 1743 | | |
1749 | 1744 | | |
1750 | 1745 | | |
1751 | 1746 | | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
1752 | 1754 | | |
1753 | 1755 | | |
1754 | 1756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | 665 | | |
668 | | - | |
| 666 | + | |
669 | 667 | | |
670 | 668 | | |
671 | 669 | | |
| |||
685 | 683 | | |
686 | 684 | | |
687 | 685 | | |
688 | | - | |
689 | | - | |
| 686 | + | |
| 687 | + | |
690 | 688 | | |
691 | 689 | | |
692 | 690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments