mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Fix typos and whitespace
This commit is contained in:
2
config.c
2
config.c
@@ -375,7 +375,7 @@ parse_config(t_configuration_options *options)
|
|||||||
else if (strcmp(name, "tablespace_mapping") == 0)
|
else if (strcmp(name, "tablespace_mapping") == 0)
|
||||||
tablespace_list_append(options, value);
|
tablespace_list_append(options, value);
|
||||||
else if (strcmp(name, "pg_restore_command") == 0)
|
else if (strcmp(name, "pg_restore_command") == 0)
|
||||||
strncpy(options->pg_restore_command, value, MAXLEN);
|
strncpy(options->pg_restore_command, value, MAXLEN);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
known_parameter = false;
|
known_parameter = false;
|
||||||
|
|||||||
4
repmgr.c
4
repmgr.c
@@ -4264,10 +4264,10 @@ create_recovery_file(const char *data_dir)
|
|||||||
log_debug(_("recovery.conf: %s"), line);
|
log_debug(_("recovery.conf: %s"), line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If pg_restore_command is set, we use it as resore_cmmand in recovery.conf */
|
/* If pg_restore_command is set, we use it as restore_cmmand in recovery.conf */
|
||||||
if (strcmp(options.pg_restore_command, "") != 0)
|
if (strcmp(options.pg_restore_command, "") != 0)
|
||||||
{
|
{
|
||||||
maxlen_snprintf(line, "restore_command = '%s'\n",
|
maxlen_snprintf(line, "restore_command = '%s'\n",
|
||||||
options.pg_restore_command);
|
options.pg_restore_command);
|
||||||
if (write_recovery_file_line(recovery_file, recovery_file_path, line) == false)
|
if (write_recovery_file_line(recovery_file, recovery_file_path, line) == false)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
# You can specify a restore_command to be used in the recovery.conf that
|
# You can specify a restore_command to be used in the recovery.conf that
|
||||||
# will be placed in the cloned standby
|
# will be placed in the cloned standby
|
||||||
#
|
#
|
||||||
# pg_resore_command = cp /path/to/archived/wals/%f %p
|
# pg_restore_command = cp /path/to/archived/wals/%f %p
|
||||||
|
|
||||||
# Failover settings (repmgrd)
|
# Failover settings (repmgrd)
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user