Fix typos and whitespace

This commit is contained in:
Ian Barwick
2016-05-30 16:01:38 +09:00
parent 3bcea46c3b
commit afc904f876
3 changed files with 4 additions and 4 deletions

View File

@@ -375,7 +375,7 @@ parse_config(t_configuration_options *options)
else if (strcmp(name, "tablespace_mapping") == 0)
tablespace_list_append(options, value);
else if (strcmp(name, "pg_restore_command") == 0)
strncpy(options->pg_restore_command, value, MAXLEN);
strncpy(options->pg_restore_command, value, MAXLEN);
else
{
known_parameter = false;

View File

@@ -4264,10 +4264,10 @@ create_recovery_file(const char *data_dir)
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)
{
maxlen_snprintf(line, "restore_command = '%s'\n",
maxlen_snprintf(line, "restore_command = '%s'\n",
options.pg_restore_command);
if (write_recovery_file_line(recovery_file, recovery_file_path, line) == false)
return false;

View File

@@ -116,7 +116,7 @@
# You can specify a restore_command to be used in the recovery.conf that
# 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)
# ---------------------------