minor fixes

This commit is contained in:
Grigory Smolkin
2019-09-23 13:57:10 +03:00
parent 1f67593175
commit 1d34fd8c84
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -929,7 +929,7 @@ get_closest_backup(timelineInfo *tlinfo)
* should be considered.
*/
if (!XLogRecPtrIsInvalid(backup->stop_lsn) &&
!XRecOffIsValid(backup->stop_lsn) &&
XRecOffIsValid(backup->stop_lsn) &&
backup->stop_lsn <= tlinfo->switchpoint &&
(backup->status == BACKUP_STATUS_OK ||
backup->status == BACKUP_STATUS_DONE))
@@ -950,10 +950,11 @@ get_closest_backup(timelineInfo *tlinfo)
/*
* Find oldest backup in given timeline
* to determine what WAL segments belonging to this timeline,
* are not reachable from any backup.
* to determine what WAL segments of this timeline
* are reachable from backups belonging to it.
*
* Returns NULL if such backup is not found.
* If such backup doesn't exist, it means that
* there is no backups on this timeline. Return NULL.
*/
pgBackup*
get_oldest_backup(timelineInfo *tlinfo)
+1 -1
View File
@@ -634,7 +634,7 @@ do_retention_wal(bool dry_run)
/*
* If closest backup exists, then timeline is reachable from
* at least one backup and none files should not be removed.
* at least one backup and no file should be removed.
*/
if (tlinfo->closest_backup)
continue;