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

@ -1058,11 +1058,9 @@ create_recovery_conf(time_t backup_id,
if (params->primary_conninfo) if (params->primary_conninfo)
fio_fprintf(fp, "primary_conninfo = '%s'\n", params->primary_conninfo); fio_fprintf(fp, "primary_conninfo = '%s'\n", params->primary_conninfo);
else{ else if (backup->primary_conninfo)
if (backup->primary_conninfo)
fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo); fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo);
} }
}
if (pitr_requested) if (pitr_requested)
{ {