提交 9975c683 编写于 作者: S Simon Riggs

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册