37
37
*
38
38
*
39
39
* IDENTIFICATION
40
- * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.72 2010/07/06 19:18:57 momjian Exp $
40
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.73 2010/08/12 23:24:54 rhaas Exp $
41
41
*
42
42
*-------------------------------------------------------------------------
43
43
*/
@@ -449,7 +449,7 @@ ProcArrayInitRecoveryInfo(TransactionId oldestActiveXid)
449
449
/*
450
450
* ProcArrayApplyRecoveryInfo -- apply recovery info about xids
451
451
*
452
- * Takes us through 3 states: Uninitialized , Pending and Ready.
452
+ * Takes us through 3 states: Initialized , Pending and Ready.
453
453
* Normal case is to go all the way to Ready straight away, though there
454
454
* are atypical cases where we need to take it in steps.
455
455
*
@@ -487,7 +487,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
487
487
return ;
488
488
489
489
/*
490
- * If our initial RunningXactData had an overflowed snapshot then we knew
490
+ * If our initial RunningTransactionsData had an overflowed snapshot then we knew
491
491
* we were missing some subxids from our snapshot. We can use this data as
492
492
* an initial snapshot, but we cannot yet mark it valid. We know that the
493
493
* missing subxids are equal to or earlier than nextXid. After we
@@ -518,7 +518,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
518
518
Assert (standbyState == STANDBY_INITIALIZED );
519
519
520
520
/*
521
- * OK, we need to initialise from the RunningXactData record
521
+ * OK, we need to initialise from the RunningTransactionsData record
522
522
*/
523
523
524
524
/*
@@ -1499,7 +1499,7 @@ GetRunningTransactionData(void)
1499
1499
suboverflowed = true;
1500
1500
1501
1501
/*
1502
- * Top-level XID of a transaction is always greater than any of
1502
+ * Top-level XID of a transaction is always less than any of
1503
1503
* its subxids, so we don't need to check if any of the subxids
1504
1504
* are smaller than oldestRunningXid
1505
1505
*/
@@ -2313,7 +2313,7 @@ DisplayXidCache(void)
2313
2313
* aborted but we think they were running; the distinction is irrelevant
2314
2314
* because either way any changes done by the transaction are not visible to
2315
2315
* backends in the standby. We prune KnownAssignedXids when
2316
- * XLOG_XACT_RUNNING_XACTS arrives, to forestall possible overflow of the
2316
+ * XLOG_RUNNING_XACTS arrives, to forestall possible overflow of the
2317
2317
* array due to such dead XIDs.
2318
2318
*/
2319
2319
@@ -2323,9 +2323,9 @@ DisplayXidCache(void)
2323
2323
* unobserved XIDs.
2324
2324
*
2325
2325
* RecordKnownAssignedTransactionIds() should be run for *every* WAL record
2326
- * type apart from XLOG_XACT_RUNNING_XACTS (since that initialises the first
2326
+ * type apart from XLOG_RUNNING_XACTS (since that initialises the first
2327
2327
* snapshot so that RecordKnownAssignedTransactionIds() can be called). Must
2328
- * be called for each record after we have executed StartupCLog () et al,
2328
+ * be called for each record after we have executed StartupCLOG () et al,
2329
2329
* since we must ExtendCLOG() etc..
2330
2330
*
2331
2331
* Called during recovery in analogy with and in place of GetNewTransactionId()
@@ -3046,11 +3046,11 @@ KnownAssignedXidsDisplay(int trace_level)
3046
3046
if (KnownAssignedXidsValid [i ])
3047
3047
{
3048
3048
nxids ++ ;
3049
- appendStringInfo (& buf , "[%u ]=%u " , i , KnownAssignedXids [i ]);
3049
+ appendStringInfo (& buf , "[%d ]=%u " , i , KnownAssignedXids [i ]);
3050
3050
}
3051
3051
}
3052
3052
3053
- elog (trace_level , "%d KnownAssignedXids (num=%u tail=%u head=%u ) %s" ,
3053
+ elog (trace_level , "%d KnownAssignedXids (num=%d tail=%d head=%d ) %s" ,
3054
3054
nxids ,
3055
3055
pArray -> numKnownAssignedXids ,
3056
3056
pArray -> tailKnownAssignedXids ,
0 commit comments