Skip to content
Snippets Groups Projects
Commit 9975c683 authored by Simon Riggs's avatar Simon Riggs
Browse files

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

parent b9075a6d
Branches
Tags
No related merge requests found
......@@ -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 */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment