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)
929929 * should be considered.
930930 */
931931 if (!XLogRecPtrIsInvalid (backup -> stop_lsn ) &&
932- ! XRecOffIsValid (backup -> stop_lsn ) &&
932+ XRecOffIsValid (backup -> stop_lsn ) &&
933933 backup -> stop_lsn <= tlinfo -> switchpoint &&
934934 (backup -> status == BACKUP_STATUS_OK ||
935935 backup -> status == BACKUP_STATUS_DONE ))
@@ -950,10 +950,11 @@ get_closest_backup(timelineInfo *tlinfo)
950950
951951/*
952952 * 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 .
955955 *
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.
957958 */
958959pgBackup *
959960get_oldest_backup (timelineInfo * tlinfo )
Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ do_retention_wal(bool dry_run)
634634
635635 /*
636636 * 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.
638638 */
639639 if (tlinfo -> closest_backup )
640640 continue ;
You can’t perform that action at this time.
0 commit comments