forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite51c469
committed
Move InitXLogInsert() call from InitXLOGAccess() to BaseInit().
At present, there is an undocumented coding rule that you must callRecoveryInProgress(), or do something else that results in a callto InitXLogInsert(), before trying to write WAL. Otherwise, theWAL construction buffers won't be initialized, resulting infailures.Since it's not good to rely on a status inquiry function likeRecoveryInProgress() having the side effect of initializingcritical 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 parent354a1f8 commite51c469
2 files changed
+6
-13
lines changedLines changed: 0 additions & 13 deletions
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 |
| |
|
Lines changed: 6 additions & 0 deletions
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
Comments
(0)