Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b6b2402

Browse files
author
Artur Zakirov
committed
Make compiler quiet
1 parent 9af7ec0 commit b6b2402

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

parsexlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ validate_wal(pgBackup *backup,
125125

126126
while (true)
127127
{
128-
record = XLogReadRecord(xlogreader, startpoint, &errormsg);
129128
bool timestamp_record;
129+
130+
record = XLogReadRecord(xlogreader, startpoint, &errormsg);
130131
if (record == NULL)
131132
{
132133
XLogRecPtr errptr;

validate.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,15 @@ int do_validate(time_t backup_id,
7777
int i;
7878
int base_index; /* index of base (full) backup */
7979
int last_restored_index; /* index of last restored database backup */
80-
int ret;
81-
TimeLineID cur_tli;
8280
TimeLineID backup_tli;
8381
TimeLineID newest_tli;
8482
parray *timelines;
8583
parray *backups;
8684
pgRecoveryTarget *rt = NULL;
8785
pgBackup *base_backup = NULL;
88-
bool another_pg_probackup = false;
8986
bool backup_id_found = false;
9087

91-
ret = catalog_lock();
92-
if (ret == 1)
93-
another_pg_probackup = true;
88+
catalog_lock();
9489

9590
rt = checkIfCreateRecoveryConf(target_time, target_xid, target_inclusive);
9691
if (rt == NULL)
@@ -101,7 +96,6 @@ int do_validate(time_t backup_id,
10196
if (!backups)
10297
elog(ERROR, "cannot process any more.");
10398

104-
cur_tli = get_current_timeline(true);
10599
newest_tli = findNewestTimeLine(1);
106100
backup_tli = get_fullbackup_timeline(backups, rt);
107101

0 commit comments

Comments
 (0)