mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-25 11:53:32 +02:00
bugfix: replace fprintf() with fio_fprintf()
This commit is contained in:
parent
ca717e2d4c
commit
cd0548da67
@ -1378,7 +1378,7 @@ print_file_list(FILE *out, const parray *files, const char *root,
|
|||||||
fio_fprintf(out, ",\"segno\":\"%d\"", file->segno);
|
fio_fprintf(out, ",\"segno\":\"%d\"", file->segno);
|
||||||
|
|
||||||
if (file->linked)
|
if (file->linked)
|
||||||
fprintf(out, ",\"linked\":\"%s\"", file->linked);
|
fio_fprintf(out, ",\"linked\":\"%s\"", file->linked);
|
||||||
|
|
||||||
if (file->n_blocks != BLOCKNUM_INVALID)
|
if (file->n_blocks != BLOCKNUM_INVALID)
|
||||||
fio_fprintf(out, ",\"n_blocks\":\"%i\"", file->n_blocks);
|
fio_fprintf(out, ",\"n_blocks\":\"%i\"", file->n_blocks);
|
||||||
|
@ -817,29 +817,29 @@ create_recovery_conf(time_t backup_id,
|
|||||||
* exclusive options is specified, so the order of calls is insignificant.
|
* exclusive options is specified, so the order of calls is insignificant.
|
||||||
*/
|
*/
|
||||||
if (rt->target_name)
|
if (rt->target_name)
|
||||||
fprintf(fp, "recovery_target_name = '%s'\n", rt->target_name);
|
fio_fprintf(fp, "recovery_target_name = '%s'\n", rt->target_name);
|
||||||
|
|
||||||
if (rt->time_string)
|
if (rt->time_string)
|
||||||
fprintf(fp, "recovery_target_time = '%s'\n", rt->time_string);
|
fio_fprintf(fp, "recovery_target_time = '%s'\n", rt->time_string);
|
||||||
|
|
||||||
if (rt->xid_string)
|
if (rt->xid_string)
|
||||||
fprintf(fp, "recovery_target_xid = '%s'\n", rt->xid_string);
|
fio_fprintf(fp, "recovery_target_xid = '%s'\n", rt->xid_string);
|
||||||
|
|
||||||
if (rt->lsn_string)
|
if (rt->lsn_string)
|
||||||
fprintf(fp, "recovery_target_lsn = '%s'\n", rt->lsn_string);
|
fio_fprintf(fp, "recovery_target_lsn = '%s'\n", rt->lsn_string);
|
||||||
|
|
||||||
if (rt->target_stop && !target_latest)
|
if (rt->target_stop && !target_latest)
|
||||||
fprintf(fp, "recovery_target = '%s'\n", rt->target_stop);
|
fio_fprintf(fp, "recovery_target = '%s'\n", rt->target_stop);
|
||||||
|
|
||||||
if (rt->inclusive_specified)
|
if (rt->inclusive_specified)
|
||||||
fprintf(fp, "recovery_target_inclusive = '%s'\n",
|
fio_fprintf(fp, "recovery_target_inclusive = '%s'\n",
|
||||||
rt->target_inclusive ? "true" : "false");
|
rt->target_inclusive ? "true" : "false");
|
||||||
|
|
||||||
if (rt->target_tli)
|
if (rt->target_tli)
|
||||||
fprintf(fp, "recovery_target_timeline = '%u'\n", rt->target_tli);
|
fio_fprintf(fp, "recovery_target_timeline = '%u'\n", rt->target_tli);
|
||||||
|
|
||||||
if (rt->target_action)
|
if (rt->target_action)
|
||||||
fprintf(fp, "recovery_target_action = '%s'\n", rt->target_action);
|
fio_fprintf(fp, "recovery_target_action = '%s'\n", rt->target_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (restore_as_replica)
|
if (restore_as_replica)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user