Skip to content

Commit 53c1a05

Browse files
committed
Remove unnecessary validate_backup_version
1 parent 728e3d5 commit 53c1a05

File tree

2 files changed

+533
-3
lines changed

2 files changed

+533
-3
lines changed

src/validate.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ static void *pgBackupValidateFiles(void *arg);
1919
static void do_validate_instance(void);
2020

2121
static bool corrupted_backup_found = false;
22-
/* Program version of a current backup */
23-
static uint32 validate_backup_version = 0;
2422

2523
typedef struct
2624
{
@@ -220,7 +218,7 @@ pgBackupValidateFiles(void *arg)
220218
* To avoid this problem we need to use different algorithm, CRC-32 in
221219
* this case.
222220
*/
223-
crc = pgFileGetCRC(file->path, validate_backup_version <= 20021);
221+
crc = pgFileGetCRC(file->path, arguments->backup_version <= 20021);
224222
if (crc != file->crc)
225223
{
226224
elog(WARNING, "Invalid CRC of backup file \"%s\" : %X. Expected %X",

0 commit comments

Comments
 (0)