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

This commit is contained in:
Simon Riggs 2010-12-09 10:20:49 +00:00
parent b9075a6d2f
commit 9975c683b1

View File

@ -3809,11 +3809,9 @@ 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 */