We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6b4c90a commit393afa5Copy full SHA for 393afa5
src/archive.c
@@ -65,8 +65,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
65
join_path_components(absolute_wal_file_path,current_dir,wal_file_path);
66
join_path_components(backup_wal_file_path,arclog_path,wal_file_name);
67
68
-if (access(absolute_wal_file_path,F_OK)!=-1)
69
-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);
70
71
elog(INFO,"pg_probackup archive-push from %s to %s",absolute_wal_file_path,backup_wal_file_path);
72
copy_wal_file(absolute_wal_file_path,backup_wal_file_path);