forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite45057e
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 parent85d85ff commite45057e
1 file changed
+17
-4
lines changedLines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 |
| - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
558 | 564 |
| |
559 | 565 |
| |
560 | 566 |
| |
| |||
6952 | 6958 |
| |
6953 | 6959 |
| |
6954 | 6960 |
| |
| 6961 | + | |
| 6962 | + | |
| 6963 | + | |
| 6964 | + | |
| 6965 | + | |
| 6966 | + | |
| 6967 | + | |
6955 | 6968 |
| |
6956 | 6969 |
| |
6957 | 6970 |
| |
6958 |
| - | |
| 6971 | + | |
6959 | 6972 |
| |
6960 | 6973 |
| |
6961 | 6974 |
| |
6962 |
| - | |
| 6975 | + | |
6963 | 6976 |
| |
6964 | 6977 |
| |
6965 | 6978 |
| |
| |||
6972 | 6985 |
| |
6973 | 6986 |
| |
6974 | 6987 |
| |
6975 |
| - | |
| 6988 | + | |
6976 | 6989 |
| |
6977 | 6990 |
| |
6978 | 6991 |
| |
|
0 commit comments
Comments
(0)