forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3f0ab05
committed
Switch timelines if we crash soon after promotion.
Previous patch to skip checkpoints at end of recovery didn'tcorrectly perform crash recovery, fumbling the timeline switch.Now we record the minRecoveryPointTLI of the newly selectedtimeline, so that we crash recover to the correct timeline.Bug report from Fujii Masao, investigated by me.1 parent9afc583 commit3f0ab05
1 file changed
+37
-1
lines changedLines changed: 37 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4828 | 4828 |
| |
4829 | 4829 |
| |
4830 | 4830 |
| |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
| 4844 | + | |
| 4845 | + | |
| 4846 | + | |
4831 | 4847 |
| |
4832 | 4848 |
| |
4833 | 4849 |
| |
| |||
5075 | 5091 |
| |
5076 | 5092 |
| |
5077 | 5093 |
| |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
5078 | 5100 |
| |
5079 | 5101 |
| |
5080 | 5102 |
| |
| |||
6945 | 6967 |
| |
6946 | 6968 |
| |
6947 | 6969 |
| |
| 6970 | + | |
6948 | 6971 |
| |
6949 | 6972 |
| |
6950 | 6973 |
| |
| |||
6962 | 6985 |
| |
6963 | 6986 |
| |
6964 | 6987 |
| |
6965 |
| - | |
| 6988 | + | |
| 6989 | + | |
| 6990 | + | |
| 6991 | + | |
| 6992 | + | |
| 6993 | + | |
| 6994 | + | |
| 6995 | + | |
| 6996 | + | |
| 6997 | + | |
| 6998 | + | |
| 6999 | + | |
| 7000 | + | |
| 7001 | + | |
6966 | 7002 |
| |
6967 | 7003 |
| |
6968 | 7004 |
| |
|
0 commit comments
Comments
(0)