mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Rename "pg_restore_command" to "restore_command"
The 'pg_' prefix could cause confusion with actual binaries (pg_ctl, pg_basebackup etc.) and there's no obvious reason why we need it.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -4265,11 +4265,11 @@ create_recovery_file(const char *data_dir)
|
||||
log_debug(_("recovery.conf: %s"), line);
|
||||
}
|
||||
|
||||
/* If pg_restore_command is set, we use it as restore_command in recovery.conf */
|
||||
if (strcmp(options.pg_restore_command, "") != 0)
|
||||
/* If restore_command is set, we use it as restore_command in recovery.conf */
|
||||
if (strcmp(options.restore_command, "") != 0)
|
||||
{
|
||||
maxlen_snprintf(line, "restore_command = '%s'\n",
|
||||
options.pg_restore_command);
|
||||
options.restore_command);
|
||||
if (write_recovery_file_line(recovery_file, recovery_file_path, line) == false)
|
||||
return false;
|
||||
log_debug(_("recovery.conf: %s"), line);
|
||||
|
||||
Reference in New Issue
Block a user