- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitb755133
committed
Fix off-by-one error in calculating subtrans/multixact truncation point.
If there were no subtransactions (or multixacts) active, we would calculatethe oldestxid == next xid. That's correct, but if next XID happens to beon the next pg_subtrans (pg_multixact) page, the page does not exist yet,and SimpleLruTruncate will produce an "apparent wraparound" warning. Thewarning is harmless in this case, but looks very alarming to users.Backpatch to all supported versions. Patch and analysis by Thomas Munro.1 parentb6e7780 commitb755133
2 files changed
+16
-3
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| 174 | + | |
| 175 | + | |
174 | 176 |
| |
175 | 177 |
| |
176 | 178 |
| |
| |||
3076 | 3078 |
| |
3077 | 3079 |
| |
3078 | 3080 |
| |
3079 |
| - | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
3080 | 3088 |
| |
3081 |
| - | |
| 3089 | + | |
3082 | 3090 |
| |
3083 | 3091 |
| |
3084 | 3092 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 |
| - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
344 | 348 |
| |
| 349 | + | |
345 | 350 |
| |
346 | 351 |
| |
347 | 352 |
| |
|
0 commit comments
Comments
(0)