@@ -164,12 +164,12 @@ validate_wal(pgBackup *backup,
164164all_wal = true;
165165break ;
166166}
167- /*Stop if there are no target xid and target time */
167+ /*If there are no target xid and target time */
168168else if (!TransactionIdIsValid (target_xid )&& target_time == 0 &&
169169xlogreader -> ReadRecPtr == backup -> stop_lsn )
170170{
171171all_wal = true;
172- break ;
172+ /* We don't stop here. We want to get last_xid and last_time */
173173}
174174
175175startpoint = InvalidXLogRecPtr ;/* continue reading at next record */
@@ -217,13 +217,13 @@ validate_wal(pgBackup *backup,
217217last_timestamp ,last_xid );
218218
219219if (TransactionIdIsValid (target_xid )&& target_time != 0 )
220- elog (ERROR ,"there arenot WAL records to time %s and xid " XID_FMT ,
220+ elog (ERROR ,"there areno WAL records to time %s and xid " XID_FMT ,
221221target_timestamp ,target_xid );
222222else if (TransactionIdIsValid (target_xid ))
223- elog (ERROR ,"there arenot WAL records to xid " XID_FMT ,
223+ elog (ERROR ,"there areno WAL records to xid " XID_FMT ,
224224target_xid );
225225else if (target_time != 0 )
226- elog (ERROR ,"there arenot WAL records to time %s " ,
226+ elog (ERROR ,"there areno WAL records to time %s " ,
227227target_timestamp );
228228}
229229}