Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 393afa5

Browse files
committed
fix
1 parent 6b4c90a commit 393afa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
6565
join_path_components(absolute_wal_file_path, current_dir, wal_file_path);
6666
join_path_components(backup_wal_file_path, arclog_path, wal_file_name);
6767

68-
if (access(absolute_wal_file_path, F_OK) != -1)
69-
elog(ERROR, "file '%s', already exists.", absolute_wal_file_path);
68+
if (access(backup_wal_file_path, F_OK) != -1)
69+
elog(ERROR, "file '%s', already exists.", backup_wal_file_path);
7070

7171
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path);
7272
copy_wal_file(absolute_wal_file_path, backup_wal_file_path);

0 commit comments

Comments
 (0)