!4467 修复multixact对应的xmax 判断在 in progress时导致的tpcc一致性偶现瞬时校验失败的问题

Merge pull request !4467 from cchen676/pinbufferOK
This commit is contained in:
opengauss_bot
2023-11-30 06:55:16 +00:00
committed by Gitee

View File

@ -1158,7 +1158,7 @@ recheck_xmax:
else else
return false; /* deleted before scan started */ return false; /* deleted before scan started */
} }
if (TransactionIdIsInProgress(xmax)) if (!XidVisibleInSnapshot(xmax, snapshot, &hintstatus, InvalidBuffer, NULL))
return true; return true;
if (TransactionIdDidCommit(xmax)) { if (TransactionIdDidCommit(xmax)) {
/* updating transaction committed, but when? */ /* updating transaction committed, but when? */