@@ -97,7 +97,7 @@ backup_data_file(const char *from_root, const char *to_root,
9797return false;
9898
9999elog (ERROR_SYSTEM ,"cannot open backup mode file \"%s\": %s" ,
100- file -> path ,strerror (errno ));
100+ file -> path ,strerror (errno ));
101101}
102102
103103/* open backup file for write */
@@ -111,7 +111,7 @@ backup_data_file(const char *from_root, const char *to_root,
111111int errno_tmp = errno ;
112112fclose (in );
113113elog (ERROR_SYSTEM ,"cannot open backup file \"%s\": %s" ,
114- to_path ,strerror (errno_tmp ));
114+ to_path ,strerror (errno_tmp ));
115115}
116116
117117/* confirm server version */
@@ -161,7 +161,7 @@ backup_data_file(const char *from_root, const char *to_root,
161161fclose (in );
162162fclose (out );
163163elog (ERROR_SYSTEM ,"cannot write at block %u of \"%s\": %s" ,
164- blknum ,to_path ,strerror (errno_tmp ));
164+ blknum ,to_path ,strerror (errno_tmp ));
165165}
166166
167167/* update CRC */
@@ -177,7 +177,7 @@ backup_data_file(const char *from_root, const char *to_root,
177177fclose (in );
178178fclose (out );
179179elog (ERROR_SYSTEM ,"cannot read backup mode file \"%s\": %s" ,
180- file -> path ,strerror (errno_tmp ));
180+ file -> path ,strerror (errno_tmp ));
181181}
182182
183183/*
@@ -221,7 +221,7 @@ backup_data_file(const char *from_root, const char *to_root,
221221fclose (in );
222222fclose (out );
223223elog (ERROR_SYSTEM ,"cannot write at block %u of \"%s\": %s" ,
224- blknum ,to_path ,strerror (errno_tmp ));
224+ blknum ,to_path ,strerror (errno_tmp ));
225225}
226226
227227COMP_CRC32C (crc ,page .data ,read_len );
@@ -240,7 +240,7 @@ backup_data_file(const char *from_root, const char *to_root,
240240fclose (in );
241241fclose (out );
242242elog (ERROR_SYSTEM ,"cannot change mode of \"%s\": %s" ,file -> path ,
243- strerror (errno_tmp ));
243+ strerror (errno_tmp ));
244244}
245245
246246fclose (in );
@@ -259,7 +259,7 @@ backup_data_file(const char *from_root, const char *to_root,
259259{
260260if (remove (to_path )== -1 )
261261elog (ERROR_SYSTEM ,"cannot remove file \"%s\": %s" ,to_path ,
262- strerror (errno ));
262+ strerror (errno ));
263263return false;
264264}
265265
@@ -297,7 +297,7 @@ restore_data_file(const char *from_root,
297297if (in == NULL )
298298{
299299elog (ERROR_SYSTEM ,"cannot open backup file \"%s\": %s" ,file -> path ,
300- strerror (errno ));
300+ strerror (errno ));
301301}
302302
303303/*
@@ -314,7 +314,7 @@ restore_data_file(const char *from_root,
314314int errno_tmp = errno ;
315315fclose (in );
316316elog (ERROR_SYSTEM ,"cannot open restore target file \"%s\": %s" ,
317- to_path ,strerror (errno_tmp ));
317+ to_path ,strerror (errno_tmp ));
318318}
319319
320320for (blknum = 0 ; ;blknum ++ )
@@ -334,21 +334,21 @@ restore_data_file(const char *from_root,
334334else if (read_len != 0 && feof (in ))
335335{
336336elog (ERROR_CORRUPTED ,
337- "odd size page found at block %u of \"%s\"" ,
338- blknum ,file -> path );
337+ "odd size page found at block %u of \"%s\"" ,
338+ blknum ,file -> path );
339339}
340340else
341341{
342342elog (ERROR_SYSTEM ,"cannot read block %u of \"%s\": %s" ,
343- blknum ,file -> path ,strerror (errno_tmp ));
343+ blknum ,file -> path ,strerror (errno_tmp ));
344344}
345345}
346346
347347if (header .block < blknum || header .hole_offset > BLCKSZ ||
348348(int )header .hole_offset + (int )header .hole_length > BLCKSZ )
349349{
350350elog (ERROR_CORRUPTED ,"backup is broken at block %u" ,
351- blknum );
351+ blknum );
352352}
353353
354354upper_offset = header .hole_offset + header .hole_length ;
@@ -361,7 +361,7 @@ restore_data_file(const char *from_root,
361361fread (page .data + upper_offset ,1 ,upper_length ,in )!= upper_length )
362362{
363363elog (ERROR_SYSTEM ,"cannot read block %u of \"%s\": %s" ,
364- blknum ,file -> path ,strerror (errno ));
364+ blknum ,file -> path ,strerror (errno ));
365365}
366366
367367/*
@@ -371,10 +371,10 @@ restore_data_file(const char *from_root,
371371blknum = header .block ;
372372if (fseek (out ,blknum * BLCKSZ ,SEEK_SET )< 0 )
373373elog (ERROR_SYSTEM ,"cannot seek block %u of \"%s\": %s" ,
374- blknum ,to_path ,strerror (errno ));
374+ blknum ,to_path ,strerror (errno ));
375375if (fwrite (page .data ,1 ,sizeof (page ),out )!= sizeof (page ))
376376elog (ERROR_SYSTEM ,"cannot write block %u of \"%s\": %s" ,
377- blknum ,file -> path ,strerror (errno ));
377+ blknum ,file -> path ,strerror (errno ));
378378}
379379
380380/* update file permission */
@@ -384,7 +384,7 @@ restore_data_file(const char *from_root,
384384fclose (in );
385385fclose (out );
386386elog (ERROR_SYSTEM ,"cannot change mode of \"%s\": %s" ,to_path ,
387- strerror (errno_tmp ));
387+ strerror (errno_tmp ));
388388}
389389
390390fclose (in );
@@ -421,7 +421,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
421421return false;
422422
423423elog (ERROR_SYSTEM ,"cannot open source file \"%s\": %s" ,file -> path ,
424- strerror (errno ));
424+ strerror (errno ));
425425}
426426
427427/* open backup file for write */
@@ -435,7 +435,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
435435int errno_tmp = errno ;
436436fclose (in );
437437elog (ERROR_SYSTEM ,"cannot open destination file \"%s\": %s" ,
438- to_path ,strerror (errno_tmp ));
438+ to_path ,strerror (errno_tmp ));
439439}
440440
441441/* stat source file to change mode of destination file */
@@ -444,7 +444,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
444444fclose (in );
445445fclose (out );
446446elog (ERROR_SYSTEM ,"cannot stat \"%s\": %s" ,file -> path ,
447- strerror (errno ));
447+ strerror (errno ));
448448}
449449
450450/* copy content and calc CRC */
@@ -460,7 +460,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
460460fclose (in );
461461fclose (out );
462462elog (ERROR_SYSTEM ,"cannot write to \"%s\": %s" ,to_path ,
463- strerror (errno_tmp ));
463+ strerror (errno_tmp ));
464464}
465465/* update CRC */
466466COMP_CRC32C (crc ,buf ,read_len );
@@ -475,7 +475,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
475475fclose (in );
476476fclose (out );
477477elog (ERROR_SYSTEM ,"cannot read backup mode file \"%s\": %s" ,
478- file -> path ,strerror (errno_tmp ));
478+ file -> path ,strerror (errno_tmp ));
479479}
480480
481481/* copy odd part. */
@@ -488,7 +488,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
488488fclose (in );
489489fclose (out );
490490elog (ERROR_SYSTEM ,"cannot write to \"%s\": %s" ,to_path ,
491- strerror (errno_tmp ));
491+ strerror (errno_tmp ));
492492}
493493/* update CRC */
494494COMP_CRC32C (crc ,buf ,read_len );
@@ -508,7 +508,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
508508fclose (in );
509509fclose (out );
510510elog (ERROR_SYSTEM ,"cannot change mode of \"%s\": %s" ,to_path ,
511- strerror (errno_tmp ));
511+ strerror (errno_tmp ));
512512}
513513
514514fclose (in );