@@ -816,10 +816,6 @@ restore_data_file(parray *parent_chain, pgFile *dest_file, FILE *out,
816816 /* set stdio buffering for input data file */
817817 setvbuf (in , in_buf , _IOFBF , STDIO_BUFSIZE );
818818
819- // elog(INFO, "N_HEADERS: %i", tmp_file->n_headers);
820- // elog(INFO, "File: %s", tmp_file->rel_path);
821- // elog(INFO, "Backup: %s", base36enc(backup->start_time));
822-
823819 /* get headers for this file */
824820 if (use_headers && tmp_file -> n_headers > 0 )
825821 headers = get_data_file_headers (& (backup -> hdr_map ), tmp_file ,
@@ -934,7 +930,7 @@ restore_data_file_internal(FILE *in, FILE *out, pgFile *file, uint32 backup_vers
934930 else
935931 {
936932 /* We get into this function either when restoring old backup
937- * or when merging something. Align read_len only in restoring
933+ * or when merging something. Align read_len only when restoring
938934 * or merging old backups.
939935 */
940936 if (get_page_header (in , from_fullpath , & (page ).bph , NULL , false))
@@ -1926,10 +1922,9 @@ bool
19261922get_page_header (FILE * in , const char * fullpath , BackupPageHeader * bph ,
19271923 pg_crc32 * crc , bool use_crc32c )
19281924{
1929-
19301925 /* read BackupPageHeader */
19311926 size_t read_len = fread (bph , 1 , sizeof (BackupPageHeader ), in );
1932-
1927+
19331928 if (ferror (in ))
19341929 elog (ERROR , "Cannot read file \"%s\": %s" ,
19351930 fullpath , strerror (errno ));
0 commit comments