Skip to content

Commit 26a834b

Browse files
committed
[Issue #201] fix alignment when skipping block during restore
1 parent 46c7f92 commit 26a834b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ restore_data_file_internal(FILE *in, FILE *out, pgFile *file, uint32 backup_vers
10471047
{
10481048
elog(WARNING, "Skipping block %u because is was already restored", blknum);
10491049
/* TODO: check error */
1050-
fseek(in, compressed_size, SEEK_CUR);
1050+
fseek(in, MAXALIGN(compressed_size), SEEK_CUR);
10511051
continue;
10521052
}
10531053

0 commit comments

Comments
 (0)