@@ -145,7 +145,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
145
145
if (p == NULL || strlen (p ) <= 1 )
146
146
pg_fatal ("%d: pg_resetxlog problem\n" , __LINE__ );
147
147
148
- p ++ ; /* removing ':' char */
148
+ p ++ ; /* remove ':' char */
149
149
cluster -> controldata .ctrl_ver = str2uint (p );
150
150
}
151
151
else if ((p = strstr (bufin , "Catalog version number:" )) != NULL )
@@ -155,7 +155,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
155
155
if (p == NULL || strlen (p ) <= 1 )
156
156
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
157
157
158
- p ++ ; /* removing ':' char */
158
+ p ++ ; /* remove ':' char */
159
159
cluster -> controldata .cat_ver = str2uint (p );
160
160
}
161
161
else if ((p = strstr (bufin , "First log segment after reset:" )) != NULL )
@@ -182,7 +182,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
182
182
if (p == NULL || strlen (p ) <= 1 )
183
183
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
184
184
185
- p ++ ; /* removing ':' char */
185
+ p ++ ; /* remove ':' char */
186
186
logid = str2uint (p );
187
187
got_log_id = true;
188
188
}
@@ -193,7 +193,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
193
193
if (p == NULL || strlen (p ) <= 1 )
194
194
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
195
195
196
- p ++ ; /* removing ':' char */
196
+ p ++ ; /* remove ':' char */
197
197
segno = str2uint (p );
198
198
got_log_seg = true;
199
199
}
@@ -204,7 +204,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
204
204
if (p == NULL || strlen (p ) <= 1 )
205
205
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
206
206
207
- p ++ ; /* removing ':' char */
207
+ p ++ ; /* remove ':' char */
208
208
cluster -> controldata .chkpnt_tli = str2uint (p );
209
209
got_tli = true;
210
210
}
@@ -215,14 +215,14 @@ get_control_data(ClusterInfo *cluster, bool live_check)
215
215
if (p == NULL || strlen (p ) <= 1 )
216
216
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
217
217
218
- p ++ ; /* removing ':' char */
218
+ p ++ ; /* remove ':' char */
219
219
cluster -> controldata .chkpnt_nxtepoch = str2uint (p );
220
220
221
221
p = strchr (p , '/' );
222
222
if (p == NULL || strlen (p ) <= 1 )
223
223
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
224
224
225
- p ++ ; /* removing '/' char */
225
+ p ++ ; /* remove '/' char */
226
226
cluster -> controldata .chkpnt_nxtxid = str2uint (p );
227
227
got_xid = true;
228
228
}
@@ -233,7 +233,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
233
233
if (p == NULL || strlen (p ) <= 1 )
234
234
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
235
235
236
- p ++ ; /* removing ':' char */
236
+ p ++ ; /* remove ':' char */
237
237
cluster -> controldata .chkpnt_nxtoid = str2uint (p );
238
238
got_oid = true;
239
239
}
@@ -244,7 +244,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
244
244
if (p == NULL || strlen (p ) <= 1 )
245
245
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
246
246
247
- p ++ ; /* removing ':' char */
247
+ p ++ ; /* remove ':' char */
248
248
cluster -> controldata .chkpnt_nxtmulti = str2uint (p );
249
249
got_multi = true;
250
250
}
@@ -255,7 +255,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
255
255
if (p == NULL || strlen (p ) <= 1 )
256
256
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
257
257
258
- p ++ ; /* removing ':' char */
258
+ p ++ ; /* remove ':' char */
259
259
cluster -> controldata .chkpnt_oldstMulti = str2uint (p );
260
260
got_oldestmulti = true;
261
261
}
@@ -266,7 +266,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
266
266
if (p == NULL || strlen (p ) <= 1 )
267
267
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
268
268
269
- p ++ ; /* removing ':' char */
269
+ p ++ ; /* remove ':' char */
270
270
cluster -> controldata .chkpnt_nxtmxoff = str2uint (p );
271
271
got_mxoff = true;
272
272
}
@@ -277,7 +277,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
277
277
if (p == NULL || strlen (p ) <= 1 )
278
278
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
279
279
280
- p ++ ; /* removing ':' char */
280
+ p ++ ; /* remove ':' char */
281
281
cluster -> controldata .align = str2uint (p );
282
282
got_align = true;
283
283
}
@@ -288,7 +288,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
288
288
if (p == NULL || strlen (p ) <= 1 )
289
289
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
290
290
291
- p ++ ; /* removing ':' char */
291
+ p ++ ; /* remove ':' char */
292
292
cluster -> controldata .blocksz = str2uint (p );
293
293
got_blocksz = true;
294
294
}
@@ -299,7 +299,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
299
299
if (p == NULL || strlen (p ) <= 1 )
300
300
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
301
301
302
- p ++ ; /* removing ':' char */
302
+ p ++ ; /* remove ':' char */
303
303
cluster -> controldata .largesz = str2uint (p );
304
304
got_largesz = true;
305
305
}
@@ -310,7 +310,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
310
310
if (p == NULL || strlen (p ) <= 1 )
311
311
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
312
312
313
- p ++ ; /* removing ':' char */
313
+ p ++ ; /* remove ':' char */
314
314
cluster -> controldata .walsz = str2uint (p );
315
315
got_walsz = true;
316
316
}
@@ -321,7 +321,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
321
321
if (p == NULL || strlen (p ) <= 1 )
322
322
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
323
323
324
- p ++ ; /* removing ':' char */
324
+ p ++ ; /* remove ':' char */
325
325
cluster -> controldata .walseg = str2uint (p );
326
326
got_walseg = true;
327
327
}
@@ -332,7 +332,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
332
332
if (p == NULL || strlen (p ) <= 1 )
333
333
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
334
334
335
- p ++ ; /* removing ':' char */
335
+ p ++ ; /* remove ':' char */
336
336
cluster -> controldata .ident = str2uint (p );
337
337
got_ident = true;
338
338
}
@@ -343,7 +343,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
343
343
if (p == NULL || strlen (p ) <= 1 )
344
344
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
345
345
346
- p ++ ; /* removing ':' char */
346
+ p ++ ; /* remove ':' char */
347
347
cluster -> controldata .index = str2uint (p );
348
348
got_index = true;
349
349
}
@@ -354,7 +354,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
354
354
if (p == NULL || strlen (p ) <= 1 )
355
355
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
356
356
357
- p ++ ; /* removing ':' char */
357
+ p ++ ; /* remove ':' char */
358
358
cluster -> controldata .toast = str2uint (p );
359
359
got_toast = true;
360
360
}
@@ -365,7 +365,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
365
365
if (p == NULL || strlen (p ) <= 1 )
366
366
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
367
367
368
- p ++ ; /* removing ':' char */
368
+ p ++ ; /* remove ':' char */
369
369
cluster -> controldata .large_object = str2uint (p );
370
370
got_large_object = true;
371
371
}
@@ -376,7 +376,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
376
376
if (p == NULL || strlen (p ) <= 1 )
377
377
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
378
378
379
- p ++ ; /* removing ':' char */
379
+ p ++ ; /* remove ':' char */
380
380
cluster -> controldata .date_is_int = strstr (p , "64-bit integers" ) != NULL ;
381
381
got_date_is_int = true;
382
382
}
@@ -387,7 +387,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
387
387
if (p == NULL || strlen (p ) <= 1 )
388
388
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
389
389
390
- p ++ ; /* removing ':' char */
390
+ p ++ ; /* remove ':' char */
391
391
/* used later for contrib check */
392
392
cluster -> controldata .float8_pass_by_value = strstr (p , "by value" ) != NULL ;
393
393
got_float8_pass_by_value = true;
@@ -399,7 +399,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
399
399
if (p == NULL || strlen (p ) <= 1 )
400
400
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
401
401
402
- p ++ ; /* removing ':' char */
402
+ p ++ ; /* remove ':' char */
403
403
/* used later for contrib check */
404
404
cluster -> controldata .data_checksum_version = str2uint (p );
405
405
got_data_checksum_version = true;
@@ -412,7 +412,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
412
412
if (p == NULL || strlen (p ) <= 1 )
413
413
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
414
414
415
- p ++ ; /* removing ':' char */
415
+ p ++ ; /* remove ':' char */
416
416
/* skip leading spaces and remove trailing newline */
417
417
p += strspn (p , " " );
418
418
if (strlen (p ) > 0 && * (p + strlen (p ) - 1 ) == '\n' )
@@ -427,7 +427,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
427
427
if (p == NULL || strlen (p ) <= 1 )
428
428
pg_fatal ("%d: controldata retrieval problem\n" , __LINE__ );
429
429
430
- p ++ ; /* removing ':' char */
430
+ p ++ ; /* remove ':' char */
431
431
/* skip leading spaces and remove trailing newline */
432
432
p += strspn (p , " " );
433
433
if (strlen (p ) > 0 && * (p + strlen (p ) - 1 ) == '\n' )
0 commit comments