mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-05 16:07:35 +02:00
correct flag for recovery.conf creation
This commit is contained in:
parent
549d66a29c
commit
c3ebbec953
@ -789,7 +789,7 @@ create_recovery_conf(time_t backup_id,
|
||||
elog(LOG, "creating recovery.conf");
|
||||
|
||||
snprintf(path, lengthof(path), "%s/recovery.conf", instance_config.pgdata);
|
||||
fp = fio_fopen(path, PG_BINARY_W, FIO_DB_HOST);
|
||||
fp = fio_fopen(path, "w", FIO_DB_HOST);
|
||||
if (fp == NULL)
|
||||
elog(ERROR, "cannot open recovery.conf \"%s\": %s", path,
|
||||
strerror(errno));
|
||||
|
Loading…
x
Reference in New Issue
Block a user