- Notifications
You must be signed in to change notification settings - Fork5
Commit2de48a8
committed
Cleanup and code review for the patch that made bgwriter active during
archive recovery. Invent a separate state variable and inquiry functionfor XLogInsertAllowed() to clarify some tests and make the management ofwriting the end-of-recovery checkpoint less klugy. Fix several placesthat were incorrectly testing InRecovery when they should be looking atRecoveryInProgress or XLogInsertAllowed (because they will now be executedin the bgwriter not startup process). Clarify handling of bad LSNs passedto XLogFlush during recovery. Use a spinlock for setting/testingSharedRecoveryInProgress. Improve quite a lot of comments.Heikki and Tom1 parenta6667d9 commit2de48a8
File tree
6 files changed
+244
-131
lines changed- src
- backend
- access/transam
- postmaster
- storage/smgr
- include/access
6 files changed
+244
-131
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| |||
1543 | 1543 |
| |
1544 | 1544 |
| |
1545 | 1545 |
| |
1546 |
| - | |
| 1546 | + | |
1547 | 1547 |
| |
1548 | 1548 |
| |
1549 | 1549 |
| |
|
0 commit comments
Comments
(0)