Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdaabb9

Browse files
committed
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 conflictif so. We can also skip adding a doomed transaction to the list ofpossible conflicts because we know it won't commit.Dan Ports and Kevin Grittner.
1 parent406d618 commitbdaabb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/storage/lmgr/predicate.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,9 @@ RegisterSerializableTransactionInt(Snapshot snapshot)
16771677
othersxact!=NULL;
16781678
othersxact=NextPredXact(othersxact))
16791679
{
1680-
if (!SxactIsOnFinishedList(othersxact)&&
1681-
!SxactIsReadOnly(othersxact))
1680+
if (!SxactIsCommitted(othersxact)
1681+
&& !SxactIsDoomed(othersxact)
1682+
&& !SxactIsReadOnly(othersxact))
16821683
{
16831684
SetPossibleUnsafeConflict(sxact,othersxact);
16841685
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp