@@ -359,9 +359,9 @@ push_file(WALSegno *xlogfile, const char *archive_status_dir,
359
359
}
360
360
361
361
static void
362
- remove_temp_wal_file (pioDrive_i * backup_drive , char * partpath )
362
+ remove_temp_wal_file (pioDrive_i backup_drive , char * partpath )
363
363
{
364
- err_i remerr = $i (pioRemove , * backup_drive , partpath , false);
364
+ err_i remerr = $i (pioRemove , backup_drive , partpath , false);
365
365
if ($haserr (remerr ))
366
366
elog (WARNING , "Temp WAL: %s" , $errmsg (remerr ));
367
367
}
@@ -527,7 +527,7 @@ push_file_internal(const char *wal_file_name, const char *pg_xlog_dir,
527
527
"checksum, skip pushing: \"%s\"" , from_fullpath );
528
528
$i (pioClose , in );
529
529
$i (pioClose , out );
530
- remove_temp_wal_file (& backup_drive , to_fullpath_part );
530
+ remove_temp_wal_file (backup_drive , to_fullpath_part );
531
531
return 1 ;
532
532
}
533
533
else if (overwrite )
@@ -540,7 +540,7 @@ push_file_internal(const char *wal_file_name, const char *pg_xlog_dir,
540
540
{
541
541
$i (pioClose , in );
542
542
$i (pioClose , out );
543
- remove_temp_wal_file (& backup_drive , to_fullpath_part );
543
+ remove_temp_wal_file (backup_drive , to_fullpath_part );
544
544
545
545
elog (ERROR , "WAL file already exists in archive with "
546
546
"different checksum: \"%s\"" , to_fullpath );
@@ -575,22 +575,22 @@ push_file_internal(const char *wal_file_name, const char *pg_xlog_dir,
575
575
if ($haserr (err ))
576
576
{
577
577
$i (pioClose , out );
578
- remove_temp_wal_file (& backup_drive , to_fullpath_part );
578
+ remove_temp_wal_file (backup_drive , to_fullpath_part );
579
579
elog (ERROR , "Copy WAL: %s" , $errmsg (err ));
580
580
}
581
581
582
582
err = $i (pioClose , out , .sync = !no_sync );
583
583
if ($haserr (err ))
584
584
{
585
- remove_temp_wal_file (& backup_drive , to_fullpath_part );
585
+ remove_temp_wal_file (backup_drive , to_fullpath_part );
586
586
elog (ERROR , "Temp WAL: %s" , $errmsg (err ));
587
587
}
588
588
589
589
/* Rename temp file to destination file */
590
590
err = $i (pioRename , backup_drive , to_fullpath_part , to_fullpath );
591
591
if ($haserr (err ))
592
592
{
593
- remove_temp_wal_file (& backup_drive , to_fullpath_part );
593
+ remove_temp_wal_file (backup_drive , to_fullpath_part );
594
594
elog (ERROR , "%s" , $errmsg (err ));
595
595
}
596
596
0 commit comments