- Notifications
You must be signed in to change notification settings - Fork5k
Commit0f452e8
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 parente5b50d0 commit0f452e8
1 file changed
+11
-9
lines changedLines changed: 11 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2931 | 2931 |
| |
2932 | 2932 |
| |
2933 | 2933 |
| |
2934 |
| - | |
2935 |
| - | |
2936 |
| - | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
2937 | 2937 |
| |
2938 |
| - | |
2939 |
| - | |
| 2938 | + | |
| 2939 | + | |
2940 | 2940 |
| |
2941 | 2941 |
| |
2942 | 2942 |
| |
| |||
3022 | 3022 |
| |
3023 | 3023 |
| |
3024 | 3024 |
| |
3025 |
| - | |
3026 |
| - | |
3027 |
| - | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
3028 | 3029 |
| |
3029 |
| - | |
| 3030 | + | |
| 3031 | + | |
3030 | 3032 |
| |
3031 | 3033 |
| |
3032 | 3034 |
| |
|
0 commit comments
Comments
(0)