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

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

parent b9075a6d
...@@ -3809,12 +3809,10 @@ HeapTupleHeaderAdvanceLatestRemovedXid(HeapTupleHeader tuple, ...@@ -3809,12 +3809,10 @@ HeapTupleHeaderAdvanceLatestRemovedXid(HeapTupleHeader tuple,
!(tuple->t_infomask & HEAP_XMIN_INVALID) && !(tuple->t_infomask & HEAP_XMIN_INVALID) &&
TransactionIdDidCommit(xmin))) TransactionIdDidCommit(xmin)))
{ {
if (TransactionIdFollows(xmax, xmin)) if (xmax != xmin &&
{ TransactionIdFollows(xmax, *latestRemovedXid))
if (TransactionIdFollows(xmax, *latestRemovedXid))
*latestRemovedXid = xmax; *latestRemovedXid = xmax;
} }
}
/* *latestRemovedXid may still be invalid at end */ /* *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