- Notifications
You must be signed in to change notification settings - Fork28
Commitdabda64
committed
Fix volatile-safety issue in dblink's materializeQueryResult().
Some fields of the sinfo struct are modified within PG_TRY and thenreferenced within PG_CATCH, so as with recent patch to async.c, "volatile"is necessary for strict POSIX compliance; and that propagates to a coupleof subroutines as well as materializeQueryResult() itself. I think therisk of actual issues here is probably higher than in async.c, becausestoreQueryResult() is likely to get inlined into materializeQueryResult(),leaving the compiler free to conclude that its stores into sinfo fields aredead code.1 parent168a809 commitdabda64
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
98 |
| - | |
| 97 | + | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| |||
966 | 966 |
| |
967 | 967 |
| |
968 | 968 |
| |
969 |
| - | |
| 969 | + | |
970 | 970 |
| |
971 | 971 |
| |
972 | 972 |
| |
973 | 973 |
| |
974 | 974 |
| |
975 |
| - | |
| 975 | + | |
976 | 976 |
| |
977 | 977 |
| |
978 | 978 |
| |
| |||
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 | 1079 |
| |
1080 |
| - | |
| 1080 | + | |
1081 | 1081 |
| |
1082 | 1082 |
| |
1083 | 1083 |
| |
| |||
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 | 1147 |
| |
1148 |
| - | |
| 1148 | + | |
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 | 1151 |
| |
|
0 commit comments
Comments
(0)