@@ -896,10 +896,10 @@ find_parent_full_backup(pgBackup *current_backup)
896
896
* Interate over parent chain and look for any problems.
897
897
* Return 0 if chain is broken.
898
898
* 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.
901
901
* 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.
903
903
* result_backup must contain FULL backup on which chain is based.
904
904
*/
905
905
int
@@ -953,9 +953,10 @@ scan_parent_chain(pgBackup *current_backup, pgBackup **result_backup)
953
953
954
954
/*
955
955
* 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.
959
960
*/
960
961
bool
961
962
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)
979
980
}
980
981
981
982
/*
982
- * return backup index number.
983
+ * Return backup index number.
983
984
* Note: this index number holds true until new sorting of backup list
984
985
*/
985
986
int
0 commit comments