File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -598,9 +598,9 @@ do_backup_instance(void)
598
598
599
599
if (ptrack_lsn > prev_backup -> stop_lsn )
600
600
{
601
- elog (ERROR , "LSN from ptrack_control %lx differs from LSN of previous backup %lx.\n"
601
+ elog (ERROR , "LSN from ptrack_control %lx differs from STOP LSN of previous backup %lx.\n"
602
602
"Create new full backup before an incremental one." ,
603
- ptrack_lsn , prev_backup -> start_lsn );
603
+ ptrack_lsn , prev_backup -> stop_lsn );
604
604
}
605
605
parray_qsort (backup_files_list , pgFileComparePath );
606
606
make_pagemap_from_ptrack (backup_files_list );
@@ -782,14 +782,17 @@ do_backup(void)
782
782
current .stream = stream_wal ;
783
783
784
784
is_ptrack_support = pg_ptrack_support ();
785
+ if (is_ptrack_support )
786
+ {
787
+ is_ptrack_enable = pg_ptrack_enable ();
788
+ }
785
789
786
790
if (current .backup_mode == BACKUP_MODE_DIFF_PTRACK )
787
791
{
788
792
if (!is_ptrack_support )
789
793
elog (ERROR , "This PostgreSQL instance does not support ptrack" );
790
794
else
791
795
{
792
- is_ptrack_enable = pg_ptrack_enable ();
793
796
if (!is_ptrack_enable )
794
797
elog (ERROR , "Ptrack is disabled" );
795
798
}
You can’t perform that action at this time.
0 commit comments