- Notifications
You must be signed in to change notification settings - Fork28
Commit1e616f6
committed
During recovery, if we reach consistent state and still have entries in the
invalid-page hash table, PANIC immediately. Immediate PANIC is much betterthan waiting for end-of-recovery, which is what we did before, because theend-of-recovery might not come until months later if this is a standbyserver.Also refrain from creating a restartpoint if there are invalid-page entriesin the hash table. Restarting recovery from such a restartpoint would notsee the invalid references, and wouldn't be able to cross-check them whenconsistency is reached. That wouldn't matter when things are going smoothly,but the more sanity checks you have the better.Fujii Masao1 parent15a5006 commit1e616f6
File tree
4 files changed
+70
-28
lines changed- src
- backend/access/transam
- include/access
4 files changed
+70
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
6758 | 6758 | | |
6759 | 6759 | | |
6760 | 6760 | | |
6761 | | - | |
6762 | | - | |
6763 | | - | |
6764 | | - | |
6765 | | - | |
6766 | | - | |
6767 | 6761 | | |
6768 | 6762 | | |
6769 | 6763 | | |
| |||
6906 | 6900 | | |
6907 | 6901 | | |
6908 | 6902 | | |
| 6903 | + | |
| 6904 | + | |
| 6905 | + | |
| 6906 | + | |
| 6907 | + | |
| 6908 | + | |
6909 | 6909 | | |
6910 | 6910 | | |
6911 | 6911 | | |
| |||
7907 | 7907 | | |
7908 | 7908 | | |
7909 | 7909 | | |
7910 | | - | |
| 7910 | + | |
7911 | 7911 | | |
7912 | 7912 | | |
7913 | 7913 | | |
| |||
7926 | 7926 | | |
7927 | 7927 | | |
7928 | 7928 | | |
| 7929 | + | |
| 7930 | + | |
| 7931 | + | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
| 7944 | + | |
7929 | 7945 | | |
7930 | 7946 | | |
7931 | 7947 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
55 | 71 | | |
56 | 72 | | |
57 | 73 | | |
| |||
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
64 | 94 | | |
65 | 95 | | |
66 | 96 | | |
67 | 97 | | |
68 | 98 | | |
69 | 99 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 100 | + | |
81 | 101 | | |
82 | 102 | | |
83 | 103 | | |
| |||
181 | 201 | | |
182 | 202 | | |
183 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
184 | 214 | | |
185 | 215 | | |
186 | 216 | | |
| |||
200 | 230 | | |
201 | 231 | | |
202 | 232 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 233 | + | |
| 234 | + | |
212 | 235 | | |
213 | 236 | | |
214 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments
Comments
(0)