@@ -117,9 +117,6 @@ bool launch_agent(void)
117
117
int infd [2 ];
118
118
int errfd [2 ];
119
119
int agent_version ;
120
- //TODO REVIEW XXX review buf_size
121
- int payload_buf_size = 1024 * 8 ;
122
- char payload_buf [payload_buf_size ];
123
120
124
121
ssh_argc = 0 ;
125
122
#ifdef WIN32
@@ -241,10 +238,13 @@ bool launch_agent(void)
241
238
fio_redirect (infd [0 ], outfd [1 ], errfd [0 ]); /* write to stdout */
242
239
}
243
240
244
- /* Make sure that remote agent has the same version, fork and other features to be binary compatible
245
- */
246
- fio_get_agent_version (& agent_version , payload_buf , payload_buf_size );
247
- check_remote_agent_compatibility (agent_version , payload_buf , payload_buf_size );
241
+
242
+ /* Make sure that remote agent has the same version, fork and other features to be binary compatible */
243
+ {
244
+ char payload_buf [1024 ];
245
+ fio_get_agent_version (& agent_version , payload_buf , sizeof payload_buf );
246
+ check_remote_agent_compatibility (agent_version , payload_buf , sizeof payload_buf );
247
+ }
248
248
249
249
return true;
250
250
}
@@ -268,7 +268,7 @@ size_t prepare_compatibility_str(char* compatibility_buf, size_t compatibility_b
268
268
char * compatibility_params [] = {
269
269
COMPATIBILITY_VAL_STR (PG_MAJORVERSION ),
270
270
#ifdef PGPRO_EDN
271
- //TODO REVIEW can use edition.h/extract_pgpro_edition()
271
+ //TODO REVIEW can use edition.h/extract_pgpro_edition() or similar
272
272
COMPATIBILITY_VAL_STR (PGPRO_EDN ),
273
273
#endif
274
274
//TODO REVIEW remove? no difference between 32/64 in global/pg_control.
0 commit comments