pgsql: Fix checkpointer crash in EXEC_BACKEND builds.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix checkpointer crash in EXEC_BACKEND builds.
Дата
Msg-id E1XAIv2-0007Qx-Td@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix checkpointer crash in EXEC_BACKEND builds.

Nothing in the checkpointer calls InitXLOGAccess(), so WALInsertLocks
never got initialized there.  Without EXEC_BACKEND, it works anyway
because the correct value is inherited from the postmaster, but
with EXEC_BACKEND we've got a problem.  The problem appears to have
been introduced by commit 68a2e52bbaf98f136a96b3a0d734ca52ca440a95.

To fix, move the relevant initialization steps from InitXLOGAccess()
to XLOGShmemInit(), making this more parallel to what we do
elsewhere.

Amit Kapila

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/250c26ba9cf247c2d5b8dbd2435a36d11382c43e

Modified Files
--------------
src/backend/access/transam/xlog.c |   10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Properly remove ephemeral replication slots after a crash restar
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix checkpointer crash in EXEC_BACKEND builds.