@ -2446,11 +2446,11 @@ PrepareRedoAdd(char *buf, XLogRecPtr start_lsn,
/*
/*
* In the event of a crash while a checkpoint was running , it may be
* In the event of a crash while a checkpoint was running , it may be
* possible that some two - phase data found its way to disk while its
* possible that some two - phase data found its way to disk while its
* corresponding record needs to be replayed in the follow - up recovery .
* corresponding record needs to be replayed in the follow - up recovery . As
* As the 2 PC data was on disk , it has already been restored at the
* the 2 PC data was on disk , it has already been restored at the beginning
* beginning of recovery with restoreTwoPhaseData ( ) , so skip this record
* of recovery with restoreTwoPhaseData ( ) , so skip this record to avoi d
* to avoid duplicates in TwoPhaseState . If a consistent state has been
* duplicates in TwoPhaseState . If a consistent state has been reached ,
* reached , the record is added to TwoPhaseState and it should have no
* the record is added to TwoPhaseState and it should have no
* corresponding file in pg_twophase .
* corresponding file in pg_twophase .
*/
*/
if ( ! XLogRecPtrIsInvalid ( start_lsn ) )
if ( ! XLogRecPtrIsInvalid ( start_lsn ) )