mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Rename RECOVERY_FILE to RECOVERY_COMMAND_FILE
This is for consistency with the PostgreSQL source code (see: src/backend/access/transam/xlog.c ), but as it's not exported we need to define it ourselves anyway.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -59,7 +59,9 @@
|
||||
#include "strutil.h"
|
||||
#include "version.h"
|
||||
|
||||
#define RECOVERY_FILE "recovery.conf"
|
||||
#ifndef RECOVERY_COMMAND_FILE
|
||||
#define RECOVERY_COMMAND_FILE "recovery.conf"
|
||||
#endif
|
||||
|
||||
#ifndef TABLESPACE_MAP
|
||||
#define TABLESPACE_MAP "tablespace_map"
|
||||
@@ -4389,7 +4391,7 @@ create_recovery_file(const char *data_dir, PGconn *primary_conn)
|
||||
char recovery_file_path[MAXLEN];
|
||||
char line[MAXLEN];
|
||||
|
||||
maxlen_snprintf(recovery_file_path, "%s/%s", data_dir, RECOVERY_FILE);
|
||||
maxlen_snprintf(recovery_file_path, "%s/%s", data_dir, RECOVERY_COMMAND_FILE);
|
||||
|
||||
recovery_file = fopen(recovery_file_path, "w");
|
||||
if (recovery_file == NULL)
|
||||
|
||||
Reference in New Issue
Block a user