forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit811051c
committed
Postpone some end-of-recovery operations related to allowing WAL.
CreateOverwriteContrecordRecord(), UpdateFullPageWrites(),PerformRecoveryXLogAction(), and CleanupAfterArchiveRecovery()are moved somewhat later in StartupXLOG(). This is preparatorywork for a future patch that wants to allow recovery to end at onetime and only later start to allow WAL writes. To do that, it'snecessary to separate code that has to do with allowing WAL writesfrom other things that need to happen simply because recovery isending, such as initializing shared memory data structures thatdepend on information that might not be accurate before redo iscomplete.This commit does not achieve that goal, but it is a step in thatdirection. For example, there are a few different bits of code thatwrite things into WAL once we have finished recovery, and with thischange, those bits of code are closer to each other than previously,with fewer unrelated bits of code interspersed.Robert Haas and Amul SulDiscussion:http://postgr.es/m/CAAJ_b97abMuq=470Wahun=aS1PHTSbStHtrjjPaD-C0YQ1AqVw@mail.gmail.com1 parent010e523 commit811051c
1 file changed
+36
-28
lines changedLines changed: 36 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8018 | 8018 |
| |
8019 | 8019 |
| |
8020 | 8020 |
| |
8021 |
| - | |
8022 |
| - | |
8023 |
| - | |
8024 |
| - | |
8025 |
| - | |
8026 |
| - | |
8027 |
| - | |
8028 |
| - | |
8029 |
| - | |
8030 |
| - | |
8031 |
| - | |
8032 |
| - | |
8033 |
| - | |
8034 |
| - | |
8035 |
| - | |
8036 |
| - | |
8037 |
| - | |
8038 |
| - | |
8039 |
| - | |
8040 |
| - | |
8041 |
| - | |
8042 |
| - | |
8043 |
| - | |
8044 |
| - | |
8045 |
| - | |
8046 |
| - | |
8047 |
| - | |
8048 |
| - | |
8049 | 8021 |
| |
8050 | 8022 |
| |
8051 | 8023 |
| |
| |||
8090 | 8062 |
| |
8091 | 8063 |
| |
8092 | 8064 |
| |
| 8065 | + | |
| 8066 | + | |
| 8067 | + | |
| 8068 | + | |
| 8069 | + | |
| 8070 | + | |
| 8071 | + | |
| 8072 | + | |
| 8073 | + | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
| 8077 | + | |
| 8078 | + | |
| 8079 | + | |
| 8080 | + | |
| 8081 | + | |
| 8082 | + | |
| 8083 | + | |
| 8084 | + | |
| 8085 | + | |
| 8086 | + | |
| 8087 | + | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
| 8096 | + | |
| 8097 | + | |
| 8098 | + | |
| 8099 | + | |
| 8100 | + | |
8093 | 8101 |
| |
8094 | 8102 |
| |
8095 | 8103 |
| |
|
0 commit comments
Comments
(0)