1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-11 11:41:33 +02:00

Do not check config->pgdata in do_archive_push().

We already checked system_identifier.
This commit is contained in:
Arthur Zakirov 2017-08-24 12:03:20 +03:00
parent 0887650a3e
commit 36ac5d22cd

View File

@ -54,11 +54,6 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
"Instance '%s' should have SYSTEM_ID = %ld instead of %ld",
wal_file_name, instance_name, config->system_identifier, system_id);
if (strcmp(current_dir, config->pgdata) != 0)
elog(ERROR, "Refuse to push WAL segment %s into archive. Instance parameters mismatch."
"Instance '%s' should have PGDATA = %s instead of %s",
wal_file_name, instance_name, config->pgdata, current_dir);
/* Create 'archlog_path' directory. Do nothing if it already exists. */
dir_create_dir(arclog_path, DIR_PERMISSION);
@ -106,4 +101,4 @@ do_archive_get(char *wal_file_path, char *wal_file_name)
elog(INFO, "pg_probackup archive-get completed successfully");
return 0;
}
}