forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit91964c3
committed
Fix unsafe coding in ReorderBufferCommit().
"iterstate" must be marked volatile since it's changed inside the PG_TRYblock and then used in the PG_CATCH stanza. Noted by Mark Wilding ofSalesforce. (We really need to see if we can't get the C compiler to warnabout this.)Also, reset iterstate to NULL after the mainline ReorderBufferIterTXNFinishcall, to ensure the PG_CATCH block doesn't try to do that a second time.1 parentd51d4ff commit91964c3
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1259 | 1259 |
| |
1260 | 1260 |
| |
1261 | 1261 |
| |
1262 |
| - | |
| 1262 | + | |
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
| |||
1304 | 1304 |
| |
1305 | 1305 |
| |
1306 | 1306 |
| |
1307 |
| - | |
1308 | 1307 |
| |
1309 | 1308 |
| |
1310 | 1309 |
| |
| |||
1473 | 1472 |
| |
1474 | 1473 |
| |
1475 | 1474 |
| |
| 1475 | + | |
1476 | 1476 |
| |
| 1477 | + | |
1477 | 1478 |
| |
1478 | 1479 |
| |
1479 | 1480 |
| |
| |||
1640 | 1641 |
| |
1641 | 1642 |
| |
1642 | 1643 |
| |
1643 |
| - | |
| 1644 | + | |
1644 | 1645 |
| |
1645 | 1646 |
| |
1646 | 1647 |
| |
|
0 commit comments
Comments
(0)