Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb9ec9c

Browse files
pg_combinebackup: Fix incorrect code documentation
The code comment for parse_oid accidentally used the wrong parameter when referring to the location of the last backup. Also, while there, improve sentence wording by removing a superfluous word. Backpatch to v17 where pg_combinebackup was addedd Author: Amul Sul <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Reviewed-by: Robert Haas <[email protected]> Discussion: https://postgr.es/m/CAAJ_b95ecWgzcS4K3Dx0E_Yp-SLwK5JBasFgioKMSjhQLw9xvg@mail.gmail.com Backpatch-through: 17
1 parent 8c153fc commit fb9ec9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_combinebackup/pg_combinebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ parse_oid(char *s, Oid *result)
804804
* Copy files from the input directory to the output directory, reconstructing
805805
* full files from incremental files as required.
806806
*
807-
* If processing is a user-defined tablespace, the tsoid should be the OID
807+
* If processing a user-defined tablespace, the tsoid should be the OID
808808
* of that tablespace and input_directory and output_directory should be the
809809
* toplevel input and output directories for that tablespace. Otherwise,
810810
* tsoid should be InvalidOid and input_directory and output_directory should
@@ -816,7 +816,7 @@ parse_oid(char *s, Oid *result)
816816
*
817817
* n_prior_backups is the number of prior backups that we have available.
818818
* This doesn't count the very last backup, which is referenced by
819-
* output_directory, just the older ones. prior_backup_dirs is an array of
819+
* input_directory, just the older ones. prior_backup_dirs is an array of
820820
* the locations of those previous backups.
821821
*/
822822
static void

0 commit comments

Comments
 (0)