Commit 1f113ab
committed
Move StartupCLOG() calls to just after we initialize ShmemVariableCache.
Previously, the hot_standby=off code path did this at end of recovery,
while the hot_standby=on code path did it at the beginning of recovery.
It's better to do this in only one place because (a) it's simpler,
(b) StartupCLOG() is trivial so trying to postpone the work isn't
useful, and (c) this will make it possible to simplify some other
logic.
Patch by me, reviewed by Heikki Linnakangas.
Discussion: http://postgr.es/m/CA+TgmoZYig9+AQodhF5sRXuKkJ=RgFDugLr3XX_dz_F-p=TwTg@mail.gmail.com1 parent e42b3c3 commit 1f113ab
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6855 | 6855 | | |
6856 | 6856 | | |
6857 | 6857 | | |
| 6858 | + | |
| 6859 | + | |
| 6860 | + | |
| 6861 | + | |
| 6862 | + | |
| 6863 | + | |
| 6864 | + | |
6858 | 6865 | | |
6859 | 6866 | | |
6860 | 6867 | | |
| |||
7125 | 7132 | | |
7126 | 7133 | | |
7127 | 7134 | | |
7128 | | - | |
| 7135 | + | |
7129 | 7136 | | |
7130 | 7137 | | |
7131 | 7138 | | |
7132 | | - | |
7133 | 7139 | | |
7134 | 7140 | | |
7135 | 7141 | | |
| |||
7945 | 7951 | | |
7946 | 7952 | | |
7947 | 7953 | | |
7948 | | - | |
7949 | | - | |
| 7954 | + | |
| 7955 | + | |
7950 | 7956 | | |
7951 | 7957 | | |
7952 | | - | |
7953 | | - | |
7954 | 7958 | | |
7955 | | - | |
7956 | 7959 | | |
7957 | 7960 | | |
7958 | 7961 | | |
| |||
0 commit comments