mirror of
https://github.com/postgres/postgres.git
synced 2025-05-12 16:21:30 +03:00
Fix comments that misspelled TransactionIdIsInProgress, per Heikki.
This commit is contained in:
parent
3e77c8c6c6
commit
bd0af827da
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.35 2007/09/08 20:31:14 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.36 2007/09/21 16:32:19 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Each global transaction is associated with a global transaction
|
* Each global transaction is associated with a global transaction
|
||||||
@ -353,7 +353,7 @@ MarkAsPrepared(GlobalTransaction gxact)
|
|||||||
LWLockRelease(TwoPhaseStateLock);
|
LWLockRelease(TwoPhaseStateLock);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Put it into the global ProcArray so TransactionIdInProgress considers
|
* Put it into the global ProcArray so TransactionIdIsInProgress considers
|
||||||
* the XID as still running.
|
* the XID as still running.
|
||||||
*/
|
*/
|
||||||
ProcArrayAdd(&gxact->proc);
|
ProcArrayAdd(&gxact->proc);
|
||||||
@ -979,8 +979,8 @@ EndPrepare(GlobalTransaction gxact)
|
|||||||
* NB: a side effect of this is to make a dummy ProcArray entry for the
|
* NB: a side effect of this is to make a dummy ProcArray entry for the
|
||||||
* prepared XID. This must happen before we clear the XID from MyProc,
|
* prepared XID. This must happen before we clear the XID from MyProc,
|
||||||
* else there is a window where the XID is not running according to
|
* else there is a window where the XID is not running according to
|
||||||
* TransactionIdInProgress, and onlookers would be entitled to assume the
|
* TransactionIdIsInProgress, and onlookers would be entitled to assume
|
||||||
* xact crashed. Instead we have a window where the same XID appears
|
* the xact crashed. Instead we have a window where the same XID appears
|
||||||
* twice in ProcArray, which is OK.
|
* twice in ProcArray, which is OK.
|
||||||
*/
|
*/
|
||||||
MarkAsPrepared(gxact);
|
MarkAsPrepared(gxact);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user