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

Commit8822263

Browse files
committed
Fix a couple of comments.
1 parent0bee536 commit8822263

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/3002:07:18 alvherre Exp $
26+
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.16 2006/07/3020: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)

[8]ページ先頭

©2009-2025 Movatter.jp