Skip to content

Commit 6d00162

Browse files
committed
PGPRO-428: comments fix
1 parent cc42c55 commit 6d00162

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/catalog.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -896,10 +896,10 @@ find_parent_full_backup(pgBackup *current_backup)
896896
* Interate over parent chain and look for any problems.
897897
* Return 0 if chain is broken.
898898
* result_backup must contain oldest existing backup after missing backup.
899-
* we have no way to know if there is multiple missing backups.
900-
* Return 1 if chain is intact, but some backup is !OK.
899+
* we have no way to know if there are multiple missing backups.
900+
* Return 1 if chain is intact, but at least one backup is !OK.
901901
* result_backup must contain oldest !OK backup.
902-
* Return 2 if chain is intact and all backup are OK.
902+
* Return 2 if chain is intact and all backups are OK.
903903
* result_backup must contain FULL backup on which chain is based.
904904
*/
905905
int
@@ -953,9 +953,10 @@ scan_parent_chain(pgBackup *current_backup, pgBackup **result_backup)
953953

954954
/*
955955
* Determine if child_backup descend from parent_backup
956-
* This check DO NOT(!!!) guarantee that parent chain is intact, because parent_backup
957-
* can be missing.
958-
* If inclusive is true, then full backup counts as a child of himself.
956+
* This check DO NOT(!!!) guarantee that parent chain is intact,
957+
* because parent_backup can be missing.
958+
* If inclusive is true, then child_backup counts as a child of himself
959+
* if parent_backup_time is start_time of child_backup.
959960
*/
960961
bool
961962
is_parent(time_t parent_backup_time, pgBackup *child_backup, bool inclusive)
@@ -979,7 +980,7 @@ is_parent(time_t parent_backup_time, pgBackup *child_backup, bool inclusive)
979980
}
980981

981982
/*
982-
* return backup index number.
983+
* Return backup index number.
983984
* Note: this index number holds true until new sorting of backup list
984985
*/
985986
int

0 commit comments

Comments
 (0)