mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-13 14:58:35 +02:00
[Issue #228]: bufferization quick fix
This commit is contained in:
parent
0322c97a5e
commit
a0d31d530b
@ -603,6 +603,10 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync, bool
|
||||
|
||||
if (fio_sync(current.hdr_map.path, FIO_BACKUP_HOST) != 0)
|
||||
elog(ERROR, "Cannot sync file \"%s\": %s", current.hdr_map.path, strerror(errno));
|
||||
|
||||
current.hdr_map.fp = NULL;
|
||||
pg_free(current.hdr_map.buf);
|
||||
current.hdr_map.buf = NULL;
|
||||
}
|
||||
|
||||
/* close ssh session in main thread */
|
||||
|
Loading…
x
Reference in New Issue
Block a user