File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -929,7 +929,7 @@ get_closest_backup(timelineInfo *tlinfo)
929
929
* should be considered.
930
930
*/
931
931
if (!XLogRecPtrIsInvalid (backup -> stop_lsn ) &&
932
- ! XRecOffIsValid (backup -> stop_lsn ) &&
932
+ XRecOffIsValid (backup -> stop_lsn ) &&
933
933
backup -> stop_lsn <= tlinfo -> switchpoint &&
934
934
(backup -> status == BACKUP_STATUS_OK ||
935
935
backup -> status == BACKUP_STATUS_DONE ))
@@ -950,10 +950,11 @@ get_closest_backup(timelineInfo *tlinfo)
950
950
951
951
/*
952
952
* Find oldest backup in given timeline
953
- * to determine what WAL segments belonging to this timeline,
954
- * are not reachable from any backup .
953
+ * to determine what WAL segments of this timeline
954
+ * are reachable from backups belonging to it .
955
955
*
956
- * Returns NULL if such backup is not found.
956
+ * If such backup doesn't exist, it means that
957
+ * there is no backups on this timeline. Return NULL.
957
958
*/
958
959
pgBackup *
959
960
get_oldest_backup (timelineInfo * tlinfo )
Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ do_retention_wal(bool dry_run)
634
634
635
635
/*
636
636
* If closest backup exists, then timeline is reachable from
637
- * at least one backup and none files should not be removed.
637
+ * at least one backup and no file should be removed.
638
638
*/
639
639
if (tlinfo -> closest_backup )
640
640
continue ;
You can’t perform that action at this time.
0 commit comments