@@ -276,8 +276,7 @@ get_checksum_errormsg(Page page, char **errormsg, BlockNumber absolute_blkno)
276276 * return it to the caller
277277 */
278278static int32
279- prepare_page (ConnectionArgs * conn_arg ,
280- pgFile * file ,XLogRecPtr prev_backup_start_lsn ,
279+ prepare_page (pgFile * file ,XLogRecPtr prev_backup_start_lsn ,
281280BlockNumber blknum ,FILE * in ,
282281BackupMode backup_mode ,
283282Page page ,bool strict ,
@@ -468,8 +467,7 @@ compress_and_backup_page(pgFile *file, BlockNumber blknum,
468467 * backup with special header.
469468 */
470469void
471- backup_data_file (ConnectionArgs * conn_arg ,pgFile * file ,
472- const char * from_fullpath ,const char * to_fullpath ,
470+ backup_data_file (pgFile * file ,const char * from_fullpath ,const char * to_fullpath ,
473471XLogRecPtr prev_backup_start_lsn ,BackupMode backup_mode ,
474472CompressAlg calg ,int clevel ,uint32 checksum_version ,
475473int ptrack_version_num ,const char * ptrack_schema ,
@@ -551,7 +549,7 @@ backup_data_file(ConnectionArgs* conn_arg, pgFile *file,
551549else
552550{
553551/* TODO: stop handling errors internally */
554- rc = send_pages (conn_arg , to_fullpath ,from_fullpath ,file ,
552+ rc = send_pages (to_fullpath ,from_fullpath ,file ,
555553/* send prev backup START_LSN */
556554(backup_mode == BACKUP_MODE_DIFF_DELTA || backup_mode == BACKUP_MODE_DIFF_PTRACK )&&
557555file -> exists_in_prev ?prev_backup_start_lsn :InvalidXLogRecPtr ,
@@ -1500,10 +1498,10 @@ check_data_file(ConnectionArgs *arguments, pgFile *file,
15001498for (blknum = 0 ;blknum < nblocks ;blknum ++ )
15011499{
15021500PageState page_st ;
1503- page_state = prepare_page (NULL , file ,InvalidXLogRecPtr ,
1504- blknum ,in ,BACKUP_MODE_FULL ,
1505- curr_page , false,checksum_version ,
1506- 0 ,NULL ,from_fullpath ,& page_st );
1501+ page_state = prepare_page (file ,InvalidXLogRecPtr ,
1502+ blknum ,in ,BACKUP_MODE_FULL ,
1503+ curr_page , false,checksum_version ,
1504+ 0 ,NULL ,from_fullpath ,& page_st );
15071505
15081506if (page_state == PageIsTruncated )
15091507break ;
@@ -1931,7 +1929,7 @@ open_local_file_rw(const char *to_fullpath, char **out_buf, uint32 buf_size)
19311929
19321930/* backup local file */
19331931int
1934- send_pages (ConnectionArgs * conn_arg , const char * to_fullpath ,const char * from_fullpath ,
1932+ send_pages (const char * to_fullpath ,const char * from_fullpath ,
19351933pgFile * file ,XLogRecPtr prev_backup_start_lsn ,CompressAlg calg ,int clevel ,
19361934uint32 checksum_version ,bool use_pagemap ,BackupPageHeader2 * * headers ,
19371935BackupMode backup_mode ,int ptrack_version_num ,const char * ptrack_schema )
@@ -1989,11 +1987,11 @@ send_pages(ConnectionArgs* conn_arg, const char *to_fullpath, const char *from_f
19891987while (blknum < file -> n_blocks )
19901988{
19911989PageState page_st ;
1992- int rc = prepare_page (conn_arg , file ,prev_backup_start_lsn ,
1993- blknum ,in ,backup_mode ,curr_page ,
1994- true,checksum_version ,
1995- ptrack_version_num ,ptrack_schema ,
1996- from_fullpath ,& page_st );
1990+ int rc = prepare_page (file ,prev_backup_start_lsn ,
1991+ blknum ,in ,backup_mode ,curr_page ,
1992+ true,checksum_version ,
1993+ ptrack_version_num ,ptrack_schema ,
1994+ from_fullpath ,& page_st );
19971995if (rc == PageIsTruncated )
19981996break ;
19991997