1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-22 11:44:34 +02:00

[Issue #171] minor fixes

This commit is contained in:
Grigory Smolkin 2020-02-23 22:04:01 +03:00
parent 80bcb80ada
commit 6f1ba680ab

View File

@ -1056,12 +1056,10 @@ create_recovery_conf(time_t backup_id,
fio_fprintf(fp, "standby_mode = 'on'\n");
#endif
if(params->primary_conninfo)
if (params->primary_conninfo)
fio_fprintf(fp, "primary_conninfo = '%s'\n", params->primary_conninfo);
else{
if (backup->primary_conninfo)
fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo);
}
else if (backup->primary_conninfo)
fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo);
}
if (pitr_requested)