File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments