forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb1df6b6
committed
Fix potential SSI hazard in heap_update().
Commit6f38d4d failed to heed a warning about the stability of thevalue pointed to by "otid". The caller is allowed to pass in a pointer tonewtup->t_self, which will be updated during the execution of thefunction. Instead, the SSI check should use the value we copy intooldtup.t_self near the top of the function.Not a live bug, because newtup->t_self doesn't really get updated untila bit later, but it was confusing and broke the rule established by thecomment.Back-patch to 13.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/2689164.1618160085%40sss.pgh.pa.us1 parent885a876 commitb1df6b6
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3900 | 3900 |
| |
3901 | 3901 |
| |
3902 | 3902 |
| |
3903 |
| - | |
| 3903 | + | |
| 3904 | + | |
3904 | 3905 |
| |
3905 | 3906 |
| |
3906 | 3907 |
| |
|
0 commit comments
Comments
(0)