forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45d792f
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 parentcdd0888 commit45d792f
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 | |
---|---|---|---|
| |||
3676 | 3676 |
| |
3677 | 3677 |
| |
3678 | 3678 |
| |
3679 |
| - | |
3680 |
| - | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
3681 | 3682 |
| |
3682 | 3683 |
| |
3683 |
| - | |
3684 |
| - | |
3685 |
| - | |
3686 |
| - | |
| 3684 | + | |
3687 | 3685 |
| |
3688 |
| - | |
| 3686 | + | |
| 3687 | + | |
3689 | 3688 |
| |
3690 |
| - | |
3691 |
| - | |
| 3689 | + | |
| 3690 | + | |
3692 | 3691 |
| |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
3693 | 3698 |
| |
3694 | 3699 |
| |
3695 | 3700 |
| |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
3696 | 3705 |
| |
3697 | 3706 |
| |
3698 | 3707 |
| |
| |||
3721 | 3730 |
| |
3722 | 3731 |
| |
3723 | 3732 |
| |
3724 |
| - | |
3725 |
| - | |
3726 |
| - | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
3727 | 3737 |
| |
3728 |
| - | |
| 3738 | + | |
| 3739 | + | |
3729 | 3740 |
| |
3730 | 3741 |
| |
3731 | 3742 |
| |
|
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)