1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-05-17 10:31:01 +02:00

minor fix

This commit is contained in:
Anastasia
2017-07-03 17:43:32 +03:00
parent 393afa55e7
commit 03dfb7bc59
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -65,10 +65,10 @@ 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);
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_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);
elog(INFO, "pg_probackup archive-push completed successfully");
+1 -1
View File
@@ -405,7 +405,7 @@ main(int argc, char *argv[])
elog(ERROR, "show-config command doesn't accept any options except -B and --instance");
return do_configure(true);
case SET_CONFIG:
if (argc == 5)
if (argc == 6)
elog(ERROR, "set-config command requires at least one option");
return do_configure(false);
}