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

pull/1/head
Simon Riggs 15 years ago
parent b9075a6d2f
commit 9975c683b1
  1. 6
      src/backend/access/heap/heapam.c

@ -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 */

Loading…
Cancel
Save