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

Commitbd0af82

Browse files
committed
Fix comments that misspelled TransactionIdIsInProgress, per Heikki.
1 parent3e77c8c commitbd0af82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/access/transam/twophase.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.35 2007/09/08 20:31:14 tgl Exp $
10+
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.36 2007/09/21 16:32:19 tgl Exp $
1111
*
1212
* NOTES
1313
*Each global transaction is associated with a global transaction
@@ -353,7 +353,7 @@ MarkAsPrepared(GlobalTransaction gxact)
353353
LWLockRelease(TwoPhaseStateLock);
354354

355355
/*
356-
* Put it into the global ProcArray soTransactionIdInProgress considers
356+
* Put it into the global ProcArray soTransactionIdIsInProgress considers
357357
* the XID as still running.
358358
*/
359359
ProcArrayAdd(&gxact->proc);
@@ -979,8 +979,8 @@ EndPrepare(GlobalTransaction gxact)
979979
* NB: a side effect of this is to make a dummy ProcArray entry for the
980980
* prepared XID. This must happen before we clear the XID from MyProc,
981981
* else there is a window where the XID is not running according to
982-
*TransactionIdInProgress, and onlookers would be entitled to assume the
983-
* xact crashed. Instead we have a window where the same XID appears
982+
*TransactionIdIsInProgress, and onlookers would be entitled to assume
983+
*thexact crashed. Instead we have a window where the same XID appears
984984
* twice in ProcArray, which is OK.
985985
*/
986986
MarkAsPrepared(gxact);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp