1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-05 13:20:31 +02:00

[Issue #323] stable remote agent API

This commit is contained in:
Grigory Smolkin 2021-02-10 15:10:15 +03:00
parent 4a4af6270f
commit 63d79e2b4f
2 changed files with 6 additions and 2 deletions

View File

@ -307,7 +307,10 @@ typedef enum ShowFormat
#define FILE_NOT_FOUND (-2) /* file disappeared during backup */
#define BLOCKNUM_INVALID (-1)
#define PROGRAM_VERSION "2.4.9"
/* update when remote agent API or behaviour changes */
#define AGENT_PROTOCOL_VERSION 20409
#define AGENT_PROTOCOL_VERSION_STR "2.4.9"
/* update only when changing storage format */
#define STORAGE_FORMAT_VERSION "2.4.4"

View File

@ -247,8 +247,9 @@ bool launch_agent(void)
(agent_version / 100) % 100,
agent_version % 100);
elog(ERROR, "Remote agent version %s does not match local program version %s",
agent_version_str, PROGRAM_VERSION);
elog(ERROR, "Remote agent protocol version %s does not match local program protocol version %s, "
"consider to upgrade pg_probackup binary",
agent_version_str, AGENT_PROTOCOL_VERSION_STR);
}
return true;