1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-26 11:54:25 +02:00

Fix agent version check

This commit is contained in:
Konstantin Knizhnik 2018-12-11 14:27:10 +03:00
parent e97fd44643
commit 2247716b68

View File

@ -317,9 +317,9 @@ main(int argc, char *argv[])
/* Parse command line only arguments */
config_get_opt(argc, argv, cmd_options, instance_options);
if (remote_agent != NULL && strcmp(remote_agent, current.program_version) != 0)
if (remote_agent != NULL && strcmp(remote_agent, PROGRAM_VERSION) != 0)
elog(ERROR, "Agent version %s doesn't match master pg_probackup version %s",
remote_agent, current.program_version);
remote_agent, PROGRAM_VERSION);
pgut_init();