1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-08 13:44:32 +02:00
This commit is contained in:
Anastasia 2017-07-03 17:22:28 +03:00
parent 6b4c90a25e
commit 393afa55e7

View File

@ -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);