- Notifications
You must be signed in to change notification settings - Fork5
Commit9f0d2bd
committed
Don't set reachedMinRecoveryPoint during crash recovery. In crash recovery,
we don't reach consistency before replaying all of the WAL. Rename thevariable to reachedConsistency, to make its intention clearer.In master, that was an active bug because of the recent patch toimmediately PANIC if a reference to a missing page is found in WAL afterreaching consistency, as Tom Lane's test case demonstrated. In 9.1 and 9.0,the only consequence was a misleading "consistent recovery state reached at%X/%X" message in the log at the beginning of crash recovery (the databaseis not consistent at that point yet). In 8.4, the log message was notprinted in crash recovery, even though there was a similarreachedMinRecoveryPoint local variable that was also set early. So,backpatch to 9.1 and 9.0.1 parent5d8a894 commit9f0d2bd
File tree
3 files changed
+19
-6
lines changed- src
- backend/access/transam
- include/access
3 files changed
+19
-6
lines changedLines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
565 |
| - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
566 | 572 |
| |
567 | 573 |
| |
568 | 574 |
| |
| |||
6893 | 6899 |
| |
6894 | 6900 |
| |
6895 | 6901 |
| |
| 6902 | + | |
| 6903 | + | |
| 6904 | + | |
| 6905 | + | |
| 6906 | + | |
| 6907 | + | |
| 6908 | + | |
6896 | 6909 |
| |
6897 | 6910 |
| |
6898 | 6911 |
| |
6899 |
| - | |
| 6912 | + | |
6900 | 6913 |
| |
6901 | 6914 |
| |
6902 | 6915 |
| |
| |||
6906 | 6919 |
| |
6907 | 6920 |
| |
6908 | 6921 |
| |
6909 |
| - | |
| 6922 | + | |
6910 | 6923 |
| |
6911 | 6924 |
| |
6912 | 6925 |
| |
| |||
6919 | 6932 |
| |
6920 | 6933 |
| |
6921 | 6934 |
| |
6922 |
| - | |
| 6935 | + | |
6923 | 6936 |
| |
6924 | 6937 |
| |
6925 | 6938 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
|
0 commit comments
Comments
(0)