summaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/pg_combinebackup.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2024-03-13 12:06:44 -0400
committerRobert Haas <rhaas@postgresql.org>2024-03-13 12:06:44 -0400
commitdbfc44716596073b99e093a04e29e774a518f520 (patch)
tree54633322a838768f020053bea59f391e313422ec /src/bin/pg_combinebackup/pg_combinebackup.c
parent97d85be365443eb4bf84373a7468624762382059 (diff)
Expose new function get_controlfile_by_exact_path().
This works just like get_controlfile(), but expects the path to the control file rather than the path to the data directory that contains the control file. This makes more sense in cases where the caller has already constructed the path to the control file itself. Amul Sul and Robert Haas, reviewed by Michael Paquier
Diffstat (limited to 'src/bin/pg_combinebackup/pg_combinebackup.c')
-rw-r--r--src/bin/pg_combinebackup/pg_combinebackup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c
index 60e62d03b19..4197cfeadef 100644
--- a/src/bin/pg_combinebackup/pg_combinebackup.c
+++ b/src/bin/pg_combinebackup/pg_combinebackup.c
@@ -534,7 +534,7 @@ check_control_files(int n_backups, char **backup_dirs)
controlpath = psprintf("%s/%s", backup_dirs[i], "global/pg_control");
pg_log_debug("reading \"%s\"", controlpath);
- control_file = get_controlfile(backup_dirs[i], &crc_ok);
+ control_file = get_controlfile_by_exact_path(controlpath, &crc_ok);
/* Control file contents not meaningful if CRC is bad. */
if (!crc_ok)