Commit e51c469
committed
Move InitXLogInsert() call from InitXLOGAccess() to BaseInit().
At present, there is an undocumented coding rule that you must call
RecoveryInProgress(), or do something else that results in a call
to InitXLogInsert(), before trying to write WAL. Otherwise, the
WAL construction buffers won't be initialized, resulting in
failures.
Since it's not good to rely on a status inquiry function like
RecoveryInProgress() having the side effect of initializing
critical data structures, instead do the initialization eariler,
when the backend first starts up.
Patch by me. Reviewed by Nathan Bossart and Michael Paquier.
Discussion: http://postgr.es/m/CA+TgmoY7b65qRjzHN_tWUk8B4sJqk1vj1d31uepVzmgPnZKeLg@mail.gmail.com1 parent 354a1f8 commit e51c469
2 files changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8677 | 8677 | | |
8678 | 8678 | | |
8679 | 8679 | | |
8680 | | - | |
8681 | | - | |
8682 | | - | |
8683 | 8680 | | |
8684 | 8681 | | |
8685 | 8682 | | |
| |||
9129 | 9126 | | |
9130 | 9127 | | |
9131 | 9128 | | |
9132 | | - | |
9133 | | - | |
9134 | | - | |
9135 | | - | |
9136 | | - | |
9137 | | - | |
9138 | | - | |
9139 | | - | |
9140 | | - | |
9141 | | - | |
9142 | 9129 | | |
9143 | 9130 | | |
9144 | 9131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
544 | 550 | | |
545 | 551 | | |
546 | 552 | | |
| |||
0 commit comments