@@ -154,7 +154,7 @@ get_current_timeline(bool safe)
154
154
155
155
/* First fetch file... */
156
156
buffer = slurpFile (instance_config .pgdata , "global/pg_control" , & size ,
157
- safe );
157
+ safe , FIO_DB_HOST );
158
158
if (safe && buffer == NULL )
159
159
return 0 ;
160
160
@@ -212,7 +212,7 @@ get_system_identifier(const char *pgdata_path)
212
212
size_t size ;
213
213
214
214
/* First fetch file... */
215
- buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false);
215
+ buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false, FIO_DB_HOST );
216
216
if (buffer == NULL )
217
217
return 0 ;
218
218
digestControlFile (& ControlFile , buffer , size );
@@ -263,7 +263,7 @@ get_xlog_seg_size(char *pgdata_path)
263
263
size_t size ;
264
264
265
265
/* First fetch file... */
266
- buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false);
266
+ buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false, FIO_DB_HOST );
267
267
if (buffer == NULL )
268
268
return 0 ;
269
269
digestControlFile (& ControlFile , buffer , size );
@@ -284,7 +284,7 @@ get_data_checksum_version(bool safe)
284
284
285
285
/* First fetch file... */
286
286
buffer = slurpFile (instance_config .pgdata , "global/pg_control" , & size ,
287
- safe );
287
+ safe , FIO_DB_HOST );
288
288
if (buffer == NULL )
289
289
return 0 ;
290
290
digestControlFile (& ControlFile , buffer , size );
@@ -301,7 +301,7 @@ get_pgcontrol_checksum(const char *pgdata_path)
301
301
size_t size ;
302
302
303
303
/* First fetch file... */
304
- buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false);
304
+ buffer = slurpFile (pgdata_path , "global/pg_control" , & size , false, FIO_BACKUP_HOST );
305
305
if (buffer == NULL )
306
306
return 0 ;
307
307
digestControlFile (& ControlFile , buffer , size );
@@ -324,7 +324,7 @@ set_min_recovery_point(pgFile *file, const char *backup_path,
324
324
char fullpath [MAXPGPATH ];
325
325
326
326
/* First fetch file content */
327
- buffer = slurpFile (instance_config .pgdata , XLOG_CONTROL_FILE , & size , false);
327
+ buffer = slurpFile (instance_config .pgdata , XLOG_CONTROL_FILE , & size , false, FIO_DB_HOST );
328
328
if (buffer == NULL )
329
329
elog (ERROR , "ERROR" );
330
330
@@ -367,7 +367,7 @@ copy_pgcontrol_file(const char *from_root, const char *to_root, pgFile *file, fi
367
367
size_t size ;
368
368
char to_path [MAXPGPATH ];
369
369
370
- buffer = slurpFile (from_root , XLOG_CONTROL_FILE , & size , false);
370
+ buffer = slurpFile (from_root , XLOG_CONTROL_FILE , & size , false, FIO_DB_HOST );
371
371
372
372
digestControlFile (& ControlFile , buffer , size );
373
373
0 commit comments