File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,8 @@ validate_tablespace_map(pgBackup *backup)
716
716
pgFile * * tablespace_map = NULL ;
717
717
pg_crc32 crc ;
718
718
parray * files = get_backup_filelist (backup , true);
719
+ bool use_crc32c = parse_program_version (backup -> program_version ) <= 20021 ||
720
+ parse_program_version (backup -> program_version ) >= 20025 ;
719
721
720
722
parray_qsort (files , pgFileCompareRelPathWithExternal );
721
723
join_path_components (map_path , backup -> database_dir , PG_TABLESPACE_MAP_FILE );
@@ -738,7 +740,7 @@ validate_tablespace_map(pgBackup *backup)
738
740
map_path , base36enc (backup -> backup_id ));
739
741
740
742
/* check tablespace map checksumms */
741
- crc = pgFileGetCRC (map_path , true , false);
743
+ crc = pgFileGetCRC (map_path , use_crc32c , false);
742
744
743
745
if ((* tablespace_map )-> crc != crc )
744
746
elog (ERROR , "Invalid CRC of tablespace map file \"%s\" : %X. Expected %X, "
You can’t perform that action at this time.
0 commit comments