Commit 9975c683 authored by Simon Riggs's avatar Simon Riggs

Self review of previous patch. Fix assumption that xmax >= xmin.

parent b9075a6d
......@@ -3809,11 +3809,9 @@ 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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment