forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc2ba012
committed
Work around gcc 4.6.0 bug that breaks WAL replay.
ReadRecord's habit of using both direct references to tmpRecPtr andreferences to *RecPtr (which is pointing at tmpRecPtr) triggers anoptimization bug in gcc 4.6.0, which apparently has forgotten aboutaliasing rules. Avoid the compiler bug, and make the code more readableto boot, by getting rid of the direct references. Improve the commentswhile at it.Back-patch to all supported versions, in case they get built with 4.6.0.Tom Lane, with some cosmetic suggestions from Alex Hunsaker1 parentcb2d158 commitc2ba012
File tree
2 files changed
+30
-19
lines changed- src
- backend/access/transam
- include/access
2 files changed
+30
-19
lines changedLines changed: 24 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3728 | 3728 |
| |
3729 | 3729 |
| |
3730 | 3730 |
| |
3731 |
| - | |
3732 |
| - | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
3733 | 3734 |
| |
3734 | 3735 |
| |
3735 |
| - | |
3736 |
| - | |
3737 |
| - | |
3738 |
| - | |
| 3736 | + | |
3739 | 3737 |
| |
3740 |
| - | |
| 3738 | + | |
| 3739 | + | |
3741 | 3740 |
| |
3742 |
| - | |
3743 |
| - | |
| 3741 | + | |
| 3742 | + | |
3744 | 3743 |
| |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
3745 | 3750 |
| |
3746 | 3751 |
| |
3747 | 3752 |
| |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
3748 | 3757 |
| |
3749 | 3758 |
| |
3750 | 3759 |
| |
| |||
3773 | 3782 |
| |
3774 | 3783 |
| |
3775 | 3784 |
| |
3776 |
| - | |
3777 |
| - | |
3778 |
| - | |
| 3785 | + | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
3779 | 3789 |
| |
3780 |
| - | |
| 3790 | + | |
| 3791 | + | |
3781 | 3792 |
| |
3782 | 3793 |
| |
3783 | 3794 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
154 | 154 |
| |
155 | 155 |
| |
156 | 156 |
| |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
161 | 161 |
| |
162 |
| - | |
163 |
| - | |
| 162 | + | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
|
0 commit comments
Comments
(0)