11
11
* Portions Copyright (c) 1994, Regents of the University of California
12
12
*
13
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.22 2010/05/13 11:15:38 sriggs Exp $
14
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/standby.c,v 1.23 2010/05/14 07: 11:49 sriggs Exp $
15
15
*
16
16
*-------------------------------------------------------------------------
17
17
*/
@@ -717,6 +717,7 @@ standby_redo(XLogRecPtr lsn, XLogRecord *record)
717
717
running .xcnt = xlrec -> xcnt ;
718
718
running .subxid_overflow = xlrec -> subxid_overflow ;
719
719
running .nextXid = xlrec -> nextXid ;
720
+ running .latestCompletedXid = xlrec -> latestCompletedXid ;
720
721
running .oldestRunningXid = xlrec -> oldestRunningXid ;
721
722
running .xids = xlrec -> xids ;
722
723
@@ -731,8 +732,9 @@ standby_desc_running_xacts(StringInfo buf, xl_running_xacts *xlrec)
731
732
{
732
733
int i ;
733
734
734
- appendStringInfo (buf , " nextXid %u oldestRunningXid %u" ,
735
+ appendStringInfo (buf , " nextXid %u latestCompletedXid %u oldestRunningXid %u" ,
735
736
xlrec -> nextXid ,
737
+ xlrec -> latestCompletedXid ,
736
738
xlrec -> oldestRunningXid );
737
739
if (xlrec -> xcnt > 0 )
738
740
{
@@ -880,6 +882,7 @@ LogCurrentRunningXacts(RunningTransactions CurrRunningXacts)
880
882
xlrec .subxid_overflow = CurrRunningXacts -> subxid_overflow ;
881
883
xlrec .nextXid = CurrRunningXacts -> nextXid ;
882
884
xlrec .oldestRunningXid = CurrRunningXacts -> oldestRunningXid ;
885
+ xlrec .latestCompletedXid = CurrRunningXacts -> latestCompletedXid ;
883
886
884
887
/* Header */
885
888
rdata [0 ].data = (char * ) (& xlrec );
@@ -902,19 +905,20 @@ LogCurrentRunningXacts(RunningTransactions CurrRunningXacts)
902
905
903
906
if (CurrRunningXacts -> subxid_overflow )
904
907
elog (trace_recovery (DEBUG2 ),
905
- "snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u next xid %u)" ,
908
+ "snapshot of %u running transactions overflowed (lsn %X/%X oldest xid %u latest complete %u next xid %u)" ,
906
909
CurrRunningXacts -> xcnt ,
907
910
recptr .xlogid , recptr .xrecoff ,
908
911
CurrRunningXacts -> oldestRunningXid ,
912
+ CurrRunningXacts -> latestCompletedXid ,
909
913
CurrRunningXacts -> nextXid );
910
914
else
911
915
elog (trace_recovery (DEBUG2 ),
912
- "snapshot of %u running transaction ids (lsn %X/%X oldest xid %u next xid %u)" ,
916
+ "snapshot of %u running transaction ids (lsn %X/%X oldest xid %u latest complete %u next xid %u)" ,
913
917
CurrRunningXacts -> xcnt ,
914
918
recptr .xlogid , recptr .xrecoff ,
915
919
CurrRunningXacts -> oldestRunningXid ,
920
+ CurrRunningXacts -> latestCompletedXid ,
916
921
CurrRunningXacts -> nextXid );
917
-
918
922
}
919
923
920
924
/*
0 commit comments