Commit bdaabb9b authored by Heikki Linnakangas's avatar Heikki Linnakangas

There's a small window wherein a transaction is committed but not yet

on the finished list, and we shouldn't flag it as a potential conflict
if so. We can also skip adding a doomed transaction to the list of
possible conflicts because we know it won't commit.

Dan Ports and Kevin Grittner.
parent 406d6183
...@@ -1677,8 +1677,9 @@ RegisterSerializableTransactionInt(Snapshot snapshot) ...@@ -1677,8 +1677,9 @@ RegisterSerializableTransactionInt(Snapshot snapshot)
othersxact != NULL; othersxact != NULL;
othersxact = NextPredXact(othersxact)) othersxact = NextPredXact(othersxact))
{ {
if (!SxactIsOnFinishedList(othersxact) && if (!SxactIsCommitted(othersxact)
!SxactIsReadOnly(othersxact)) && !SxactIsDoomed(othersxact)
&& !SxactIsReadOnly(othersxact))
{ {
SetPossibleUnsafeConflict(sxact, othersxact); SetPossibleUnsafeConflict(sxact, othersxact);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment