forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1d919de
committed
Remove unnecessary call to ReadCheckpointRecord().
It should always be the case that the last checkpoint record is stillreadable, because otherwise, a crash would leave us in a situationfrom which we can't recover. Therefore the test removed by this patchshould always succeed. For it to fail, either there has to be a seriousbug in the code someplace, or the user has to be manually modifyingpg_wal while crash recovery is running. If it's the first one, weshould fix the bug. If it's the second one, they should stop, oranyway they're doing so at their own risk. In neither case doesa full checkpoint instead of an end-of-recovery record seem like aclear winner. Furthermore, rarely-taken code paths are particularlyvulnerable to bugs, so let's simplify by getting rid of this one.Discussion:http://postgr.es/m/CA+TgmoYmw==TOJ6EzYb_vcjyS09NkzrVKSyBKUUyo1zBEaJASA@mail.gmail.com1 parent3df93a6 commit1d919de
1 file changed
+11
-23
lines changedLines changed: 11 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7917 | 7917 |
| |
7918 | 7918 |
| |
7919 | 7919 |
| |
7920 |
| - | |
| 7920 | + | |
7921 | 7921 |
| |
7922 | 7922 |
| |
7923 |
| - | |
7924 |
| - | |
| 7923 | + | |
| 7924 | + | |
| 7925 | + | |
| 7926 | + | |
| 7927 | + | |
| 7928 | + | |
| 7929 | + | |
| 7930 | + | |
7925 | 7931 |
| |
7926 |
| - | |
7927 |
| - | |
7928 |
| - | |
7929 |
| - | |
7930 |
| - | |
7931 |
| - | |
7932 |
| - | |
7933 |
| - | |
7934 |
| - | |
7935 |
| - | |
7936 |
| - | |
7937 |
| - | |
7938 |
| - | |
7939 |
| - | |
7940 |
| - | |
7941 |
| - | |
7942 |
| - | |
7943 |
| - | |
| 7932 | + | |
7944 | 7933 |
| |
7945 |
| - | |
7946 |
| - | |
| 7934 | + | |
7947 | 7935 |
| |
7948 | 7936 |
| |
7949 | 7937 |
| |
|
0 commit comments
Comments
(0)