未验证 提交 74399541 编写于 作者: R Richard Guo 提交者: GitHub

Assert OldestXmin is valid in heap_page_prune_opt.

Previously we checked whether OldestXmin is valid in heap_page_prune_opt
and exited early if not so. This is mainly because in the case of
persistent tables, GPDB may call into here without having a local
snapshot and thus no valid OldestXmin.

Since now we do not support persistent tables any more, revert this
check to an assertion to keep the same with upstream.
Reviewed-by: NHeikki Linnakangas <hlinnakangas@pivotal.io>
Reviewed-by: NDaniel Gustafsson <dgustafsson@pivotal.io>
上级 dfee2ff7
......@@ -98,15 +98,7 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
else
OldestXmin = RecentGlobalDataXmin;
/*
* In GPDB we may call into here without having a local snapshot and thus
* no valid OldestXmin transaction id. Exit early if so.
*
* GPDB_94_MERGE_FIXME: Is that still true, or could we turn this back
* into an assertion?
*/
if (!TransactionIdIsValid(OldestXmin))
return;
Assert(TransactionIdIsValid(OldestXmin));
/*
* Let's see if we really need pruning.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册