mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-08 13:44:32 +02:00
fix
This commit is contained in:
parent
6b4c90a25e
commit
393afa55e7
@ -65,8 +65,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
|
||||
join_path_components(absolute_wal_file_path, current_dir, wal_file_path);
|
||||
join_path_components(backup_wal_file_path, arclog_path, wal_file_name);
|
||||
|
||||
if (access(absolute_wal_file_path, F_OK) != -1)
|
||||
elog(ERROR, "file '%s', already exists.", absolute_wal_file_path);
|
||||
if (access(backup_wal_file_path, F_OK) != -1)
|
||||
elog(ERROR, "file '%s', already exists.", backup_wal_file_path);
|
||||
|
||||
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path);
|
||||
copy_wal_file(absolute_wal_file_path, backup_wal_file_path);
|
||||
|
Loading…
Reference in New Issue
Block a user