mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Self review of previous patch. Fix assumption that xmax >= xmin.
This commit is contained in:
parent
b9075a6d2f
commit
9975c683b1
@ -3809,12 +3809,10 @@ HeapTupleHeaderAdvanceLatestRemovedXid(HeapTupleHeader tuple,
|
||||
!(tuple->t_infomask & HEAP_XMIN_INVALID) &&
|
||||
TransactionIdDidCommit(xmin)))
|
||||
{
|
||||
if (TransactionIdFollows(xmax, xmin))
|
||||
{
|
||||
if (TransactionIdFollows(xmax, *latestRemovedXid))
|
||||
if (xmax != xmin &&
|
||||
TransactionIdFollows(xmax, *latestRemovedXid))
|
||||
*latestRemovedXid = xmax;
|
||||
}
|
||||
}
|
||||
|
||||
/* *latestRemovedXid may still be invalid at end */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user