Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8822263

Browse files
committed
Fix a couple of comments.
1 parent 0bee536 commit 8822263

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/backend/storage/ipc/procarray.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*
2525
* IDENTIFICATION
26-
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.15 2006/07/30 02:07:18 alvherre Exp $
26+
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.16 2006/07/30 20:17:11 tgl Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -446,10 +446,8 @@ GetOldestXmin(bool allDbs, bool ignoreVacuum)
446446
/*
447447
* Also consider the transaction's Xmin, if set.
448448
*
449-
* Note that this Xmin may seem to be guaranteed to be always
450-
* lower than the transaction's Xid, but this is not so because
451-
* there is a time window on which the Xid is already assigned
452-
* but the Xmin has not being calculated yet.
449+
* We must check both Xid and Xmin because there is a window
450+
* where an xact's Xid is set but Xmin isn't yet.
453451
*/
454452
xid = proc->xmin;
455453
if (TransactionIdIsNormal(xid))
@@ -489,7 +487,7 @@ GetOldestXmin(bool allDbs, bool ignoreVacuum)
489487
* older than this are known not running any more.
490488
* RecentGlobalXmin: the global xmin (oldest TransactionXmin across all
491489
* running transactions, except those running LAZY VACUUM). This is
492-
* the same computation done by GetOldestXmin(true, false).
490+
* the same computation done by GetOldestXmin(true, true).
493491
*----------
494492
*/
495493
Snapshot

0 commit comments

Comments
 (0)