File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,9 @@ validate_wal(pgBackup *backup,
125
125
126
126
while (true)
127
127
{
128
- record = XLogReadRecord (xlogreader , startpoint , & errormsg );
129
128
bool timestamp_record ;
129
+
130
+ record = XLogReadRecord (xlogreader , startpoint , & errormsg );
130
131
if (record == NULL )
131
132
{
132
133
XLogRecPtr errptr ;
Original file line number Diff line number Diff line change @@ -77,20 +77,15 @@ int do_validate(time_t backup_id,
77
77
int i ;
78
78
int base_index ; /* index of base (full) backup */
79
79
int last_restored_index ; /* index of last restored database backup */
80
- int ret ;
81
- TimeLineID cur_tli ;
82
80
TimeLineID backup_tli ;
83
81
TimeLineID newest_tli ;
84
82
parray * timelines ;
85
83
parray * backups ;
86
84
pgRecoveryTarget * rt = NULL ;
87
85
pgBackup * base_backup = NULL ;
88
- bool another_pg_probackup = false;
89
86
bool backup_id_found = false;
90
87
91
- ret = catalog_lock ();
92
- if (ret == 1 )
93
- another_pg_probackup = true;
88
+ catalog_lock ();
94
89
95
90
rt = checkIfCreateRecoveryConf (target_time , target_xid , target_inclusive );
96
91
if (rt == NULL )
@@ -101,7 +96,6 @@ int do_validate(time_t backup_id,
101
96
if (!backups )
102
97
elog (ERROR , "cannot process any more." );
103
98
104
- cur_tli = get_current_timeline (true);
105
99
newest_tli = findNewestTimeLine (1 );
106
100
backup_tli = get_fullbackup_timeline (backups , rt );
107
101
You can’t perform that action at this time.
0 commit comments