Skip to content

Commit 1d34fd8

Browse files
committed
minor fixes
1 parent 1f67593 commit 1d34fd8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/catalog.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
958959
pgBackup*
959960
get_oldest_backup(timelineInfo *tlinfo)

src/delete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)