From dbfc44716596073b99e093a04e29e774a518f520 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 13 Mar 2024 12:06:44 -0400 Subject: 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 --- src/include/common/controldata_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/common/controldata_utils.h') diff --git a/src/include/common/controldata_utils.h b/src/include/common/controldata_utils.h index 04da70e87b2..6e263ce0de0 100644 --- a/src/include/common/controldata_utils.h +++ b/src/include/common/controldata_utils.h @@ -13,6 +13,8 @@ #include "catalog/pg_control.h" extern ControlFileData *get_controlfile(const char *DataDir, bool *crc_ok_p); +extern ControlFileData *get_controlfile_by_exact_path(const char *ControlFilePath, + bool *crc_ok_p); extern void update_controlfile(const char *DataDir, ControlFileData *ControlFile, bool do_sync); -- cgit v1.2.3