Skip to content

Commit 7ae1317

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 <sulamul@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/CAAJ_b95ecWgzcS4K3Dx0E_Yp-SLwK5JBasFgioKMSjhQLw9xvg@mail.gmail.com Backpatch-through: 17
1 parent c55df7c commit 7ae1317

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
@@ -814,7 +814,7 @@ parse_oid(char *s, Oid *result)
814814
* Copy files from the input directory to the output directory, reconstructing
815815
* full files from incremental files as required.
816816
*
817-
* If processing is a user-defined tablespace, the tsoid should be the OID
817+
* If processing a user-defined tablespace, the tsoid should be the OID
818818
* of that tablespace and input_directory and output_directory should be the
819819
* toplevel input and output directories for that tablespace. Otherwise,
820820
* tsoid should be InvalidOid and input_directory and output_directory should
@@ -826,7 +826,7 @@ parse_oid(char *s, Oid *result)
826826
*
827827
* n_prior_backups is the number of prior backups that we have available.
828828
* This doesn't count the very last backup, which is referenced by
829-
* output_directory, just the older ones. prior_backup_dirs is an array of
829+
* input_directory, just the older ones. prior_backup_dirs is an array of
830830
* the locations of those previous backups.
831831
*/
832832
static void

0 commit comments

Comments
 (0)