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
307
307
#define FILE_NOT_FOUND (-2) /* file disappeared during backup */
308
308
#define BLOCKNUM_INVALID (-1)
309
309
#define PROGRAM_VERSION "2.4.9"
310
+
311
+ /* update when remote agent API or behaviour changes */
310
312
#define AGENT_PROTOCOL_VERSION 20409
313
+ #define AGENT_PROTOCOL_VERSION_STR "2.4.9"
311
314
312
315
/* update only when changing storage format */
313
316
#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)
247
247
(agent_version / 100 ) % 100 ,
248
248
agent_version % 100 );
249
249
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 );
252
253
}
253
254
254
255
return true;
You can’t perform that action at this time.
0 commit comments