forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteac825a
committed
Ensure that we validate the page header of the first page of a WAL file
whenever we start to read within that file. The first page carriesextra identification information that really ought to be checked, butas the code stood, this was only checked when we switched sequentiallyinto a new WAL file, or if by chance the starting checkpoint record waswithin the first page. This patch ensures that we will detect bogus'long header' information before we start replaying the WAL sequence.1 parentcc7eab3 commiteac825a
1 file changed
+29
-2
lines changedLines changed: 29 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
2727 | 2727 |
| |
2728 | 2728 |
| |
2729 | 2729 |
| |
2730 |
| - | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
2731 | 2749 |
| |
2732 | 2750 |
| |
2733 | 2751 |
| |
| |||
3036 | 3054 |
| |
3037 | 3055 |
| |
3038 | 3056 |
| |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
3039 | 3066 |
| |
3040 | 3067 |
| |
3041 | 3068 |
| |
|
0 commit comments
Comments
(0)