pgsql: Promote the assertion that XLogBeginInsert() is not called twice

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Promote the assertion that XLogBeginInsert() is not called twice
Дата
Msg-id E1Z9IIF-0006J3-Cq@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Promote the assertion that XLogBeginInsert() is not called twice into ERROR.

Seems like cheap insurance for WAL bugs. A spurious call to
XLogBeginInsert() in itself would be fairly harmless, but if there is any
data registered and the insertion is not completed/cancelled properly, there
is a risk that the data ends up in a wrong WAL record.

Per Jeff Janes's suggestion.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a32c3ec893cafbd3a4b42c34270a80198f28f123

Modified Files
--------------
src/backend/access/transam/xloginsert.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix double-XLogBeginInsert call in GIN page splits.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix markup in docs.