forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita42f515
committed
amcheck: Fix ordering bug in update_cached_xid_range()
The initialization order in update_cached_xid_range() was wrong, callingFullTransactionIdFromXidAndCtx() before setting->next_xid. FullTransactionIdFromXidAndCtx() uses ->next_xid.In most situations this will not cause visible issues, because the next callto update_cached_xid_range() will use a less wrong ->next_xid. It's rare thatxids advance fast enough for this to be a problem.Found while adding more asserts to the 64bit xid infrastructure.Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com>Discussion:https://postgr.es/m/20230108002923.cyoser3ttmt63bfn@awork3.anarazel.deBackpatch: 14-, where heapam verification was introduced1 parent7865280 commita42f515
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1578 | 1578 |
| |
1579 | 1579 |
| |
1580 | 1580 |
| |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1581 | 1584 |
| |
1582 | 1585 |
| |
1583 | 1586 |
| |
| |||
1599 | 1602 |
| |
1600 | 1603 |
| |
1601 | 1604 |
| |
1602 |
| - | |
1603 | 1605 |
| |
| 1606 | + | |
1604 | 1607 |
| |
1605 | 1608 |
| |
1606 | 1609 |
| |
|
0 commit comments
Comments
(0)