Skip to content

Commit 63d79e2

Browse files
committed
[Issue #323] stable remote agent API
1 parent 4a4af62 commit 63d79e2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pg_probackup.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ typedef enum ShowFormat
307307
#define FILE_NOT_FOUND (-2) /* file disappeared during backup */
308308
#define BLOCKNUM_INVALID (-1)
309309
#define PROGRAM_VERSION "2.4.9"
310+
311+
/* update when remote agent API or behaviour changes */
310312
#define AGENT_PROTOCOL_VERSION 20409
313+
#define AGENT_PROTOCOL_VERSION_STR "2.4.9"
311314

312315
/* update only when changing storage format */
313316
#define STORAGE_FORMAT_VERSION "2.4.4"

src/utils/remote.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ bool launch_agent(void)
247247
(agent_version / 100) % 100,
248248
agent_version % 100);
249249

250-
elog(ERROR, "Remote agent version %s does not match local program version %s",
251-
agent_version_str, PROGRAM_VERSION);
250+
elog(ERROR, "Remote agent protocol version %s does not match local program protocol version %s, "
251+
"consider to upgrade pg_probackup binary",
252+
agent_version_str, AGENT_PROTOCOL_VERSION_STR);
252253
}
253254

254255
return true;

0 commit comments

Comments
 (0)